model fmt & heisenbug
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / vg / gate.vs.glsl
1 layout (location=0) in vec3 a_co;
2 layout (location=1) in vec3 a_norm;
3 layout (location=2) in vec4 a_colour;
4 layout (location=3) in vec2 a_uv;
5
6 #line 2 0
7 uniform mat4 uPv;
8 uniform mat4x3 uMdl;
9
10 out vec3 aNorm;
11 out vec2 aUv;
12 out vec3 aCo;
13
14 void main()
15 {
16 vec3 world_pos = uMdl * vec4( a_co, 1.0 );
17 gl_Position = uPv * vec4(world_pos,1.0);
18
19 aNorm = a_norm;
20 aCo = world_pos;
21 aUv = a_uv;
22 }