Skip to content

Commit 7732689

Browse files
committed
Old shader version
1 parent 311839b commit 7732689

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shaders_old/basic.vs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#version 120
22

33
attribute vec3 a_position;
4-
attribute vec4 a_color;
4+
attribute vec3 a_normal;
55

66
varying vec4 v_color;
77

@@ -10,5 +10,5 @@ uniform mat4 u_modelViewProj;
1010
void main()
1111
{
1212
gl_Position = u_modelViewProj * vec4(a_position, 1.0f);
13-
v_color = a_color;
13+
v_color = vec4(a_normal, 1.0f);
1414
}

0 commit comments

Comments
 (0)