Camera ubo update code

This commit is contained in:
saschawillems 2018-04-08 13:22:00 +02:00
parent 3c578a065f
commit 431a8e4056

View file

@ -367,14 +367,18 @@ public:
return;
draw();
if (animate) {
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();
}
}
virtual void viewChanged()
{
if (camera.updated) {
updateUniformBuffers();
}
}
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay)
{