Flipped UI, minor changes

Flipped UI, removed extra Batch2D, added comments and minor changes
This commit is contained in:
MihailRis
2022-06-29 14:03:36 +03:00
committed by GitHub
parent c3b4357852
commit 88c1695903
7 changed files with 67 additions and 66 deletions
+8 -2
View File
@@ -40,9 +40,15 @@ mat4 Camera::getProjection(){
if (perspective)
return glm::perspective(fov*zoom, aspect, 0.05f, 1500.0f);
else
return glm::ortho(0.0f, fov*aspect, 0.0f, fov);
if (flipped)
return glm::ortho(0.0f, fov*aspect, fov, 0.0f);
else
return glm::ortho(0.0f, fov*aspect, 0.0f, fov);
}
mat4 Camera::getView(){
return glm::lookAt(position, position+front, up);
if (perspective)
return glm::lookAt(position, position+front, up);
else
return glm::mat4(1.0f);
}