actually render trails
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / trail.vs
1 layout (location=0) in vec4 a_co;
2
3 #include "motion_vectors_vs.glsl"
4
5 uniform mat4 uPv;
6 uniform mat4 uPvPrev;
7
8 out float aAlpha;
9
10 void main(){
11 vec4 vproj0 = uPv * vec4( a_co.xyz, 1.0 );
12 vec4 vproj1 = uPvPrev * vec4( a_co.xyz, 1.0 );
13 vs_motion_out( vproj0, vproj1 );
14
15 gl_Position = vproj0;
16 aAlpha = a_co.w;
17 }