2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 03:37:01 +00:00

Fix AMD crash with instanced particle shaders

This commit is contained in:
Jack Andersen
2018-06-21 17:08:47 -10:00
parent 4a19b160b9
commit f4b01e9c3f
2 changed files with 7 additions and 3 deletions

View File

@@ -30,9 +30,10 @@ BOO_GLSL_BINDING_HEAD
"SBINDING(0) out VertToFrag vtf;\n"
"void main()\n"
"{\n"
" vec4 pos = posIn[gl_VertexID];\n"
" vtf.color = colorIn * moduColor;\n"
" vtf.uv = uvsIn[gl_VertexID].xy;\n"
" gl_Position = mvp * posIn[gl_VertexID];\n"
" gl_Position = mvp * pos;\n"
"}\n";
static const char* FS_GLSL_TEX =
@@ -95,11 +96,12 @@ BOO_GLSL_BINDING_HEAD
"SBINDING(0) out VertToFrag vtf;\n"
"void main()\n"
"{\n"
" vec4 pos = posIn[gl_VertexID];\n"
" vtf.color = colorIn * moduColor;\n"
" vtf.uvScene = uvsInScene;\n"
" vtf.uvTexr = uvsInTexrTind[gl_VertexID].xy;\n"
" vtf.uvTind = uvsInTexrTind[gl_VertexID].zw;\n"
" gl_Position = mvp * posIn[gl_VertexID];\n"
" gl_Position = mvp * pos;\n"
" gl_Position = FLIPFROMGL(gl_Position);\n"
"}\n";
@@ -170,8 +172,9 @@ BOO_GLSL_BINDING_HEAD
"SBINDING(0) out VertToFrag vtf;\n"
"void main()\n"
"{\n"
" vec4 pos = posIn[gl_VertexID];\n"
" vtf.color = colorIn * moduColor;\n"
" gl_Position = mvp * posIn[gl_VertexID];\n"
" gl_Position = mvp * pos;\n"
"}\n";
static const char* FS_GLSL_NOTEX =