Merge pull request #1019 from skal65535/patch-2
Fix a typo in rotation.y update
This commit is contained in:
commit
0ab683e827
1 changed files with 2 additions and 8 deletions
|
|
@ -267,8 +267,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -324,12 +324,6 @@ public:
|
|||
return;
|
||||
draw();
|
||||
if (animate && !paused) {
|
||||
cubes[0].rotation.x += 2.5f * frameTimer;
|
||||
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;
|
||||
updateCubeUniformBuffers();
|
||||
}
|
||||
if (camera.updated) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue