layout (location=0) in vec4 a_co; #include "motion_vectors_vs.glsl" uniform mat4 uPv; uniform mat4 uPvPrev; out float aAlpha; void main(){ vec4 vproj0 = uPv * vec4( a_co.xyz, 1.0 ); vec4 vproj1 = uPvPrev * vec4( a_co.xyz, 1.0 ); vs_motion_out( vproj0, vproj1 ); gl_Position = vproj0; aAlpha = a_co.w; }