edea94d1ce9a77330a12cbe353181ba2344853df
[carveJwlIkooP6JGAAIwe30JlM.git] / model_gate.vs
1 layout (location=0) in vec3 a_co;
2 layout (location=1) in vec3 a_norm;
3 layout (location=2) in vec2 a_uv;
4 layout (location=3) in vec4 a_colour;
5 layout (location=4) in vec4 a_weights;
6 layout (location=5) in ivec4 a_groups;
7
8 uniform mat4 uPv;
9 uniform mat4x3 uMdl;
10
11 out vec3 aNorm;
12 out vec2 aUv;
13 out vec3 aCo;
14
15 void main()
16 {
17 vec3 world_pos = uMdl * vec4( a_co, 1.0 );
18 gl_Position = uPv * vec4(world_pos,1.0);
19
20 aNorm = a_norm;
21 aCo = world_pos;
22 aUv = a_uv;
23 }