Code-Cleanup: All samples now use the camera class and it's matrices

Cleaned up base class
This commit is contained in:
Sascha Willems 2020-04-22 21:01:17 +02:00
parent ab38f8b150
commit 48e7952fbf
4 changed files with 3 additions and 5 deletions

View file

@ -890,7 +890,7 @@ public:
{
uboVS.projection = camera.matrices.perspective;
uboVS.model = camera.matrices.view;
uboVS.viewPos = glm::vec4(0.0f, 0.0f, -zoom, 0.0f);
uboVS.viewPos = camera.viewPos;
VK_CHECK_RESULT(uniformBufferVS.map());
memcpy(uniformBufferVS.mapped, &uboVS, sizeof(uboVS));