X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=shaders%2Fmotion_vectors_vs.glsl;h=63a17dbdb8f06b22f39e676347292168912a107a;hb=403726131f9b460c3264e4f64c46f8aaa82978fe;hp=25c176d614263dc6dd8a824e3ba50f5afda00f54;hpb=f7db507815e2822d971031c30f25e02b45e9c914;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/motion_vectors_vs.glsl b/shaders/motion_vectors_vs.glsl index 25c176d..63a17db 100644 --- a/shaders/motion_vectors_vs.glsl +++ b/shaders/motion_vectors_vs.glsl @@ -1,8 +1,12 @@ +#include "motion_vectors_common.glsl" + out vec3 aMotionVec0; out vec3 aMotionVec1; void vs_motion_out( vec4 vproj0, vec4 vproj1 ) { + vproj1 = vproj0*(1.0-k_motion_lerp_amount) + vproj1*k_motion_lerp_amount; + aMotionVec0 = vec3( vproj0.xy, vproj0.w ); aMotionVec1 = vec3( vproj1.xy, vproj1.w ); }