mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Flipped UI, minor changes
Flipped UI, removed extra Batch2D, added comments and minor changes
This commit is contained in:
parent
c3b4357852
commit
88c1695903
7 changed files with 67 additions and 66 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue