Fix the orientation of CubeReflection

BUG=dawn:224

Change-Id: I1a6c3509245cadd0c95256e4985dac6feee50829
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11441
Reviewed-by: Yunchao He <yunchao.he@intel.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-09-20 23:53:27 +00:00 committed by Commit Bot service account
parent c81a717379
commit d46cabd73f
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,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.SetSubData(0, sizeof(CameraData), &cameraData);