Fixed rotation code
This commit is contained in:
parent
04f956c1d0
commit
899890a4fe
1 changed files with 2 additions and 2 deletions
|
|
@ -422,8 +422,8 @@ public:
|
|||
if (cubes[0].rotation.x > 360.0f)
|
||||
cubes[0].rotation.x -= 360.0f;
|
||||
cubes[1].rotation.y += 2.0f * frameTimer;
|
||||
if (cubes[1].rotation.x > 360.0f)
|
||||
cubes[1].rotation.x -= 360.0f;
|
||||
if (cubes[1].rotation.y > 360.0f)
|
||||
cubes[1].rotation.y -= 360.0f;
|
||||
}
|
||||
if ((camera.updated) || (animate && !paused)) {
|
||||
updateUniformBuffers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue