Fix CubeReflection's orientation

This commit is contained in:
Corentin Wallez 2018-07-03 14:43:46 +02:00 committed by Corentin Wallez
parent 30f85cb484
commit 804fc749a0
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ void frame() {
cameraData.view = glm::lookAt(
glm::vec3(8.f * std::sin(glm::radians(s.b * 360.f)), 2.f, 8.f * std::cos(glm::radians(s.b * 360.f))),
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(0.0f, 1.0f, 0.0f)
glm::vec3(0.0f, -1.0f, 0.0f)
);
cameraBuffer.TransitionUsage(nxt::BufferUsageBit::TransferDst);