df shadows
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / terrain.fs
index f093904b0f46ce5538bf9e78479cb992a877b5a4..3f5cd3abdf28a3a43a80a9a5ead999fd35764e1b 100644 (file)
@@ -1,10 +1,10 @@
-out vec4 FragColor;
-
 uniform sampler2D uTexGarbage;
 uniform sampler2D uTexGradients;
 uniform vec3 uCamera;
 uniform vec3 uSandColour;
 uniform vec2 uBlendOffset;
+uniform vec3 uBoard0;
+uniform vec3 uBoard1;
 
 in vec4 aColour;
 in vec2 aUv;
@@ -13,9 +13,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 +60,5 @@ void main()
    vfrag = do_light_shadowing( vfrag );
    vfrag = apply_fog( vfrag, fdist );
 
-   FragColor = vec4(vfrag, 1.0 );
+   oColour = vec4(vfrag, 1.0 );
 }