add motion vectors to all shaders
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / standard.fs
index d3a6842926edc966466f1dfe774c11f7aff297c9..58678f01195a3ff47fc4711ee45e7ed988080477 100644 (file)
@@ -1,5 +1,3 @@
-out vec4 FragColor;
-
 uniform sampler2D uTexGarbage;
 uniform sampler2D uTexMain;
 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);
    vec4 vsamplemain = texture( uTexMain, aUv );
    vec3 qnorm = normalize(aNorm);
@@ -36,5 +37,5 @@ void main()
    vfrag = do_light_shadowing( vfrag );
    vfrag = apply_fog( vfrag, fdist );
 
-   FragColor = vec4(vfrag, 1.0);
+   oColour = vec4(vfrag, 1.0);
 }