DonkeyKong64 grind crash
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / model_font.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
5 #include "motion_vectors_vs.glsl"
6
7 uniform mat4x3 uMdl;
8 uniform mat4 uPv;
9 uniform mat4 uPvmPrev;
10 uniform vec4 uOffset;
11
12 out vec2 aUv;
13 out vec4 aNorm;
14 out vec3 aCo;
15 out vec3 aWorldCo;
16
17 void main()
18 {
19 vec3 co = a_co*uOffset.w+uOffset.xyz;
20 vec3 world_pos0 = uMdl * vec4( co, 1.0 );
21 vec4 vproj0 = uPv * vec4( world_pos0, 1.0 );
22 vec4 vproj1 = uPvmPrev * vec4( co, 1.0 );
23
24 vs_motion_out( vproj0, vproj1 );
25
26 gl_Position = vproj0;
27
28 aUv = a_uv;
29 aNorm = vec4( mat3(uMdl) * a_norm, 0.0 );
30 aCo = co;
31 aWorldCo = world_pos0;
32 }