add motion vectors to all shaders
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / route.fs
index dfaa7f900184c8c4fb3c4d1f2f682870a310438e..3e82be7d679d84cd0cbfe72b8251f32751f7a92e 100644 (file)
@@ -1,5 +1,3 @@
-out vec4 FragColor;
-
 uniform sampler2D uTexGarbage;
 uniform sampler2D uTexGradients;
 uniform vec3 uCamera;
@@ -12,9 +10,12 @@ in vec3 aCo;
 in vec3 aWorldCo;
 
 #include "common_world.glsl"
+#include "motion_vectors_fs.glsl"
 
 void main()
 {
+   compute_motion_vectors();
+
    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 );
 
-   FragColor = vec4(vfrag, 1.0 );
+   oColour = vec4(vfrag, 1.0 );
 }