mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
Set y-axis up in normalized coordinate system.
BUG=dawn:224 Change-Id: I6bb4946e87b593f1d62a13b3b8ab38f21d3e9ffb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10201 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Yunchao He <yunchao.he@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
a838c7d497
commit
394553b02e
@@ -58,6 +58,7 @@ namespace dawn_native { namespace opengl {
|
||||
// in D3D12, Metal and Vulkan, so we should normalize it in shaders in all backends.
|
||||
// See the documentation of spirv_cross::CompilerGLSL::Options::vertex::fixup_clipspace for
|
||||
// more details.
|
||||
options.vertex.flip_vert_y = true;
|
||||
options.vertex.fixup_clipspace = true;
|
||||
|
||||
// TODO(cwallez@chromium.org): discover the backing context version and use that.
|
||||
|
||||
Reference in New Issue
Block a user