accommodate inspector change
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / particle.vs
1 layout (location=0) in vec3 a_co;
2 layout (location=1) in vec4 a_colour;
3
4 #include "motion_vectors_vs.glsl"
5
6 uniform mat4 uPv;
7 uniform mat4 uPvPrev;
8
9 out vec4 aColour;
10
11 void main(){
12 vec4 vproj0 = uPv * vec4( a_co, 1.0 );
13 vec4 vproj1 = uPvPrev * vec4( a_co, 1.0 );
14 vs_motion_out( vproj0, vproj1 );
15
16 gl_Position = vproj0;
17 aColour = a_colour;
18 }