diff --git a/projects/particle_simulation/src/main.cpp b/projects/particle_simulation/src/main.cpp index cc75cf1fa4eaf2f837cdb9a3f6039faeac7ecb9d..2113213f1c98a539a22777b2b86c520d826b01bf 100644 --- a/projects/particle_simulation/src/main.cpp +++ b/projects/particle_simulation/src/main.cpp @@ -210,7 +210,10 @@ int main(int argc, const char **argv) { glm::vec4 colorData = glm::vec4(1.0f, 1.0f, 0.0f, 1.0f); uint32_t camIndex0 = cameraManager.addCamera(vkcv::camera::ControllerType::PILOT); uint32_t camIndex1 = cameraManager.addCamera(vkcv::camera::ControllerType::TRACKBALL); - + + cameraManager.getCamera(camIndex0).setNearFar(0.1, 30); + cameraManager.getCamera(camIndex1).setNearFar(0.1, 30); + cameraManager.setActiveCamera(1); cameraManager.getCamera(camIndex0).setPosition(glm::vec3(0, 0, -2));