Camera ubo update code
This commit is contained in:
parent
3c578a065f
commit
431a8e4056
1 changed files with 9 additions and 5 deletions
|
|
@ -367,13 +367,17 @@ public:
|
||||||
return;
|
return;
|
||||||
draw();
|
draw();
|
||||||
if (animate) {
|
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();
|
updateCubeUniformBuffers();
|
||||||
}
|
}
|
||||||
}
|
if (camera.updated) {
|
||||||
|
updateUniformBuffers();
|
||||||
virtual void viewChanged()
|
}
|
||||||
{
|
|
||||||
updateUniformBuffers();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay)
|
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue