Add resizing functionality to all corners and side of browser

This commit is contained in:
Ylva Selling
2021-03-18 16:13:46 +01:00
parent 1a49b1c4ba
commit 3573859ffe
8 changed files with 46 additions and 33 deletions
+2 -10
View File
@@ -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;
}