df shadows
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / std_alphatest.fs
index 7881b51ed25153da52773c3f1a422920bc124c58..cd22275fee1897942d7aa9b2662fc1f5c8535be5 100644 (file)
@@ -1,7 +1,7 @@
-out vec4 FragColor;
-
 uniform sampler2D uTexGarbage;
 uniform sampler2D uTexMain;
+uniform vec3 uBoard0;
+uniform vec3 uBoard1;
 uniform vec3 uCamera;
 uniform vec4 uPlane;
 
@@ -12,9 +12,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);
    vec4 vsamplemain = texture( uTexMain, aUv );
    vec3 qnorm = normalize(aNorm);
@@ -39,5 +42,5 @@ void main()
    vfrag = do_light_shadowing( vfrag );
    vfrag = apply_fog( vfrag, fdist );
 
-   FragColor = vec4(vfrag, 1.0);
+   oColour = vec4(vfrag, 1.0);
 }