mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Add resizing functionality to all corners and side of browser
This commit is contained in:
@@ -553,17 +553,9 @@ glm::mat4 ScreenSpaceRenderable::scaleMatrix() {
|
||||
|
||||
glm::mat4 scale = glm::scale(
|
||||
glm::mat4(1.f),
|
||||
glm::vec3(_scale, _scale * textureRatio, 1.f)
|
||||
glm::vec3(_scale, textureRatio*_scale, 1.f)
|
||||
);
|
||||
|
||||
// Simulate orthographic projection by distance to plane.
|
||||
if (!_usePerspectiveProjection) {
|
||||
float distance = _useRadiusAzimuthElevation ?
|
||||
_raePosition.value().x :
|
||||
-_cartesianPosition.value().z;
|
||||
scale = glm::scale(scale, glm::vec3(distance));
|
||||
}
|
||||
|
||||
|
||||
return scale;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user