accommodate inspector change
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / motion_vectors_vs.glsl
1 #include "motion_vectors_common.glsl"
2
3 out vec3 aMotionVec0;
4 out vec3 aMotionVec1;
5
6 void vs_motion_out( vec4 vproj0, vec4 vproj1 )
7 {
8 // This magically solves some artifacting errors!
9 //
10 vproj1 = vproj0*(1.0-k_motion_lerp_amount) + vproj1*k_motion_lerp_amount;
11
12 aMotionVec0 = vec3( vproj0.xy, vproj0.w );
13 aMotionVec1 = vec3( vproj1.xy, vproj1.w );
14 }