mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
shaderc: Flip gl_Position.y when building SPIR-V.
This commit is contained in:
@@ -1765,6 +1765,13 @@ namespace bgfx
|
||||
// );
|
||||
}
|
||||
|
||||
if (0 != spirv)
|
||||
{
|
||||
preprocessor.writef(
|
||||
"\tgl_Position.y = -gl_Position.y; \\\n"
|
||||
);
|
||||
}
|
||||
|
||||
preprocessor.writef(
|
||||
"\treturn _varying_"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user