mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 21:07:42 +00:00
Vulkan coordinate fix
This commit is contained in:
@@ -28,6 +28,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
|
|||||||
" vtf.uv = uvIn[gl_VertexID];\n"
|
" vtf.uv = uvIn[gl_VertexID];\n"
|
||||||
" vtf.color = colorIn * mulColor;\n"
|
" vtf.color = colorIn * mulColor;\n"
|
||||||
" gl_Position = mv * mvMtx * vec4(posIn[gl_VertexID], 1.0);\n"
|
" gl_Position = mv * mvMtx * vec4(posIn[gl_VertexID], 1.0);\n"
|
||||||
|
" gl_Position = FLIPFROMGL(gl_Position);\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static const char* GLSLFSReg =
|
static const char* GLSLFSReg =
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
|
|||||||
"{\n"
|
"{\n"
|
||||||
" vtf.color = colorIn * mulColor;\n"
|
" vtf.color = colorIn * mulColor;\n"
|
||||||
" gl_Position = mv * vec4(posIn, 1.0);\n"
|
" gl_Position = mv * vec4(posIn, 1.0);\n"
|
||||||
|
" gl_Position = FLIPFROMGL(gl_Position);\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static const char* GLSLSolidFS =
|
static const char* GLSLSolidFS =
|
||||||
@@ -54,6 +55,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
|
|||||||
" vtf.uv.xy = uvIn;\n"
|
" vtf.uv.xy = uvIn;\n"
|
||||||
" vtf.color = mulColor;\n"
|
" vtf.color = mulColor;\n"
|
||||||
" gl_Position = mv * vec4(posIn, 1.0);\n"
|
" gl_Position = mv * vec4(posIn, 1.0);\n"
|
||||||
|
" gl_Position = FLIPFROMGL(gl_Position);\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static const char* GLSLTexFS =
|
static const char* GLSLTexFS =
|
||||||
|
|||||||
Reference in New Issue
Block a user