projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
third person better camera
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
motion_vectors_vs.glsl
diff --git
a/shaders/motion_vectors_vs.glsl
b/shaders/motion_vectors_vs.glsl
index 63a17dbdb8f06b22f39e676347292168912a107a..492f7a4814218fdcf3d08546e48a4bcf777b75a9 100644
(file)
--- a/
shaders/motion_vectors_vs.glsl
+++ b/
shaders/motion_vectors_vs.glsl
@@
-5,6
+5,8
@@
out vec3 aMotionVec1;
void vs_motion_out( vec4 vproj0, vec4 vproj1 )
{
+ // This magically solves some artifacting errors!
+ //
vproj1 = vproj0*(1.0-k_motion_lerp_amount) + vproj1*k_motion_lerp_amount;
aMotionVec0 = vec3( vproj0.xy, vproj0.w );