projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add motion vectors to all shaders
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
vblend.fs
diff --git
a/shaders/vblend.fs
b/shaders/vblend.fs
index a30f83c9ee29f12d5020f206c92b649c6da1821d..9eddd6b7f25ecff0c36a32226413cf905c153024 100644
(file)
--- a/
shaders/vblend.fs
+++ b/
shaders/vblend.fs
@@
-1,5
+1,3
@@
-out vec4 FragColor;
-
uniform sampler2D uTexGarbage;
uniform sampler2D uTexGradients;
uniform vec3 uCamera;
uniform sampler2D uTexGarbage;
uniform sampler2D uTexGradients;
uniform vec3 uCamera;
@@
-11,9
+9,12
@@
in vec3 aCo;
in vec3 aWorldCo;
#include "common_world.glsl"
in vec3 aWorldCo;
#include "common_world.glsl"
+#include "motion_vectors_fs.glsl"
void main()
{
void main()
{
+ compute_motion_vectors();
+
vec3 vfrag = vec3(0.5,0.5,0.5);
// ws modulation
vec3 vfrag = vec3(0.5,0.5,0.5);
// ws modulation
@@
-52,5
+53,5
@@
void main()
vfrag = do_light_shadowing( vfrag );
vfrag = apply_fog( vfrag, fdist );
vfrag = do_light_shadowing( vfrag );
vfrag = apply_fog( vfrag, fdist );
-
FragColo
r = vec4(vfrag, 1.0 );
+
oColou
r = vec4(vfrag, 1.0 );
}
}