Browse Source

Remove unused shader variable

master
Riyyi 4 years ago
parent
commit
966c3c5e59
  1. 5
      assets/glsl/simple.frag
  2. 6
      assets/glsl/simple.vert

5
assets/glsl/simple.frag

@ -2,10 +2,9 @@
layout(location = 0) out vec4 color; layout(location = 0) out vec4 color;
in vec3 p_position; in vec4 v_color;
in vec4 p_color;
void main() void main()
{ {
color = p_color; color = v_color;
} }

6
assets/glsl/simple.vert

@ -3,12 +3,10 @@
layout(location = 0) in vec3 a_position; layout(location = 0) in vec3 a_position;
layout(location = 1) in vec4 a_color; layout(location = 1) in vec4 a_color;
out vec3 p_position; out vec4 v_color;
out vec4 p_color;
void main() void main()
{ {
p_position = a_position; v_color = a_color;
p_color = a_color;
gl_Position = vec4(a_position, 1.0f); gl_Position = vec4(a_position, 1.0f);
} }

Loading…
Cancel
Save