diff --git a/ray_tracing_animation/hello_vulkan.cpp b/ray_tracing_animation/hello_vulkan.cpp index 5511dc6..88896d0 100644 --- a/ray_tracing_animation/hello_vulkan.cpp +++ b/ray_tracing_animation/hello_vulkan.cpp @@ -963,7 +963,6 @@ void HelloVulkan::animationInstances(float time) m_alloc.destroy(stagingBuffer); m_rtBuilder.updateTlasMatrices(m_tlas); - m_rtBuilder.updateBlas(2); } void HelloVulkan::animationObject(float time) @@ -982,6 +981,7 @@ void HelloVulkan::animationObject(float time) &time); cmdBuf.dispatch(model.nbVertices, 1, 1); genCmdBuf.submitAndWait(cmdBuf); + m_rtBuilder.updateBlas(2); } //////////////////////////////////////////////////////////////////////////