Also apply vertical flip option on aspect ratio change
This commit is contained in:
parent
a192a685b7
commit
4e610c56ce
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ public:
|
|||
void updateAspectRatio(float aspect)
|
||||
{
|
||||
matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar);
|
||||
if (flipY) {
|
||||
matrices.perspective[1, 1] *= -1.0f;
|
||||
}
|
||||
}
|
||||
|
||||
void setPosition(glm::vec3 position)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue