Match varying names in case some GL driver doesn't link by location

This commit is contained in:
baldurk
2018-07-03 14:31:05 +01:00
parent 487ac04d83
commit 573ab82fbf
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -32,8 +32,8 @@ layout(triangle_strip, max_vertices = 3) out;
layout (location = 0) in vec4 IN_secondary[3];
layout (location = 1) in vec4 IN_norm[3];
layout (location = 0) out vec4 OUT_secondary;
layout (location = 1) out vec4 OUT_norm;
layout (location = 0) out vec4 secondary;
layout (location = 1) out vec4 norm;
#ifndef OPENGL_ES
in gl_PerVertex
@@ -58,8 +58,8 @@ void main()
for(int i=0; i < 3; i++)
{
gl_Position = gl_in[i].gl_Position;
OUT_secondary = IN_secondary[i];
OUT_norm = vec4(faceNormal.xyz, 1);
secondary = IN_secondary[i];
norm = vec4(faceNormal.xyz, 1);
EmitVertex();
}
EndPrimitive();
+2 -2
View File
@@ -33,7 +33,7 @@ out gl_PerVertex
};
#endif
layout (location = 0) out vec4 OUT_secondary;
layout (location = 0) out vec4 secondary;
layout (location = 1) out vec4 norm;
void main(void)
@@ -60,7 +60,7 @@ void main(void)
gl_Position = Mesh.mvp * pos;
gl_Position.xy += Mesh.pointSpriteSize.xy*0.01f*psprite[VERTEX_ID%4]*gl_Position.w;
OUT_secondary = IN_secondary;
secondary = IN_secondary;
norm = vec4(0, 0, 1, 1);
#ifdef VULKAN