diff --git a/examples/debugmarker/debugmarker.cpp b/examples/debugmarker/debugmarker.cpp index f5c300cb..52fd55e9 100644 --- a/examples/debugmarker/debugmarker.cpp +++ b/examples/debugmarker/debugmarker.cpp @@ -240,9 +240,8 @@ public: { title = "Debugging with VK_EXT_debug_marker"; settings.overlay = true; - zoomSpeed = 2.5f; - rotationSpeed = 0.5f; camera.setRotation(glm::vec3(-4.35f, 16.25f, 0.0f)); + camera.setRotationSpeed(0.5f); camera.setPosition(glm::vec3(0.1f, 1.1f, -8.5f)); camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 256.0f); } diff --git a/examples/scenerendering/scenerendering.cpp b/examples/scenerendering/scenerendering.cpp index 4902f9df..53648655 100644 --- a/examples/scenerendering/scenerendering.cpp +++ b/examples/scenerendering/scenerendering.cpp @@ -586,11 +586,11 @@ public: VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) { title = "Multi-part scene rendering"; - rotationSpeed = 0.5f; camera.type = Camera::CameraType::firstperson; camera.movementSpeed = 7.5f; camera.position = { 15.0f, -13.5f, 0.0f }; camera.setRotation(glm::vec3(5.0f, 90.0f, 0.0f)); + camera.setRotationSpeed(0.5f); camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 256.0f); settings.overlay = true; } diff --git a/examples/shadowmappingomni/shadowmappingomni.cpp b/examples/shadowmappingomni/shadowmappingomni.cpp index fc694de3..bd5cf1f9 100644 --- a/examples/shadowmappingomni/shadowmappingomni.cpp +++ b/examples/shadowmappingomni/shadowmappingomni.cpp @@ -120,7 +120,6 @@ public: camera.setPerspective(45.0f, (float)width / (float)height, zNear, zFar); camera.setRotation(glm::vec3(-20.5f, -673.0f, 0.0f)); camera.setPosition(glm::vec3(0.0f, 0.0f, -175.0f)); - zoomSpeed = 10.0f; timerSpeed *= 0.25f; } diff --git a/examples/texturesparseresidency/texturesparseresidency.cpp b/examples/texturesparseresidency/texturesparseresidency.cpp index 1b85fe83..a1bcb26c 100644 --- a/examples/texturesparseresidency/texturesparseresidency.cpp +++ b/examples/texturesparseresidency/texturesparseresidency.cpp @@ -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));