add motion vectors to all shaders
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / terrain.fs
index f093904b0f46ce5538bf9e78479cb992a877b5a4..6e01684cf9b85bb3825436488f5c2fc2c770e2de 100644 (file)
@@ -1,5 +1,3 @@
-out vec4 FragColor;
-
 uniform sampler2D uTexGarbage;
 uniform sampler2D uTexGradients;
 uniform vec3 uCamera;
@@ -13,9 +11,14 @@ in vec3 aCo;
 in vec3 aWorldCo;
 
 #include "common_world.glsl"
+#include "motion_vectors_fs.glsl"
 
 void main()
 {
+   compute_motion_vectors();
+
+   // Colour
+   // ------
    vec3 vfrag = vec3(0.5,0.5,0.5);
 
    // ws modulation
@@ -55,5 +58,5 @@ void main()
    vfrag = do_light_shadowing( vfrag );
    vfrag = apply_fog( vfrag, fdist );
 
-   FragColor = vec4(vfrag, 1.0 );
+   oColour = vec4(vfrag, 1.0 );
 }