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:
parent
c81a717379
commit
d46cabd73f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue