Skip to content

Commit

Permalink
fix vertex input over-use
Browse files Browse the repository at this point in the history
  • Loading branch information
stohrendorf committed May 27, 2022
1 parent 15b3294 commit 1849ef8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/shaders/vtx_input.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ layout(location=9) in vec3 a_quadVert4;
layout(location=10) in vec4 a_quadUv12;
layout(location=11) in vec4 a_quadUv34;

// warning: location is re-used
layout(location=12) in vec4 a_colorTopLeft;
layout(location=13) in vec4 a_colorTopRight;
layout(location=14) in vec4 a_colorBottomLeft;
layout(location=15) in vec4 a_colorBottomRight;

layout(location=16) in vec4 a_reflective;
// warning: re-uses location
layout(location=12) in vec4 a_reflective;

0 comments on commit 1849ef8

Please sign in to comment.