diff --git a/projects/voxelization/src/main.cpp b/projects/voxelization/src/main.cpp index 1b9193c07bee7cb0dd9873f72b33058f29a678d8..0a419ddde855229efb0aaf2c7e8af0e6888f8ffe 100644 --- a/projects/voxelization/src/main.cpp +++ b/projects/voxelization/src/main.cpp @@ -360,7 +360,7 @@ int main(int argc, const char** argv) { vulkanCorrectionMatrix[3][2] = 0.5; projectionLight = vulkanCorrectionMatrix * projectionLight; - const glm::mat4 viewLight = glm::lookAt(glm::vec3(0), lightInfo.direction, glm::vec3(0, -1, 0)); + const glm::mat4 viewLight = glm::lookAt(glm::vec3(0), -lightInfo.direction, glm::vec3(0, -1, 0)); lightInfo.lightMatrix = projectionLight * viewLight; lightBuffer.fill({ lightInfo }); @@ -378,7 +378,6 @@ int main(int argc, const char** argv) { const std::vector<vkcv::ImageHandle> renderTargets = { colorBuffer, depthBuffer }; const vkcv::PushConstantData shadowPushConstantData((void*)mvpLight.data(), sizeof(glm::mat4)); - auto cmdStream = core.createCommandStream(vkcv::QueueType::Graphics);