Shader fix for AMD Vulkan compilation

This commit is contained in:
Jack Andersen 2017-11-08 22:12:07 -10:00
parent 47e6a06478
commit 6cda3a9bd3
1 changed files with 2 additions and 1 deletions

View File

@ -26,9 +26,10 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
"SBINDING(0) out VertToFrag vtf;\n"
"void main()\n"
"{\n"
" vec3 pos = posIn[gl_VertexID];\n"
" vtf.uv = uvIn[gl_VertexID];\n"
" vtf.color = colorIn * mulColor;\n"
" gl_Position = mv * mvMtx * vec4(posIn[gl_VertexID], 1.0);\n"
" gl_Position = mv * mvMtx * vec4(pos, 1.0);\n"
" gl_Position = FLIPFROMGL(gl_Position);\n"
"}\n";