df shadows
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / vblend.fs
index a30f83c9ee29f12d5020f206c92b649c6da1821d..b2e9928777566ecb335d0b419c93c44257abcb76 100644 (file)
@@ -1,8 +1,8 @@
-out vec4 FragColor;
-
 uniform sampler2D uTexGarbage;
 uniform sampler2D uTexGradients;
 uniform vec3 uCamera;
+uniform vec3 uBoard0;
+uniform vec3 uBoard1;
 
 in vec4 aColour;
 in vec2 aUv;
@@ -11,9 +11,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 +55,5 @@ void main()
    vfrag = do_light_shadowing( vfrag );
    vfrag = apply_fog( vfrag, fdist );
 
-   FragColor = vec4(vfrag, 1.0 );
+   oColour = vec4(vfrag, 1.0 );
 }