X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Froute.fs;h=3e82be7d679d84cd0cbfe72b8251f32751f7a92e;hb=191bf91146eb7e3ac15fb18de6e7267d1cd686af;hp=dfaa7f900184c8c4fb3c4d1f2f682870a310438e;hpb=1030b1e134d422a3cbc1e06102053447da59ceba;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/route.fs b/shaders/route.fs index dfaa7f9..3e82be7 100644 --- a/shaders/route.fs +++ b/shaders/route.fs @@ -1,5 +1,3 @@ -out vec4 FragColor; - uniform sampler2D uTexGarbage; uniform sampler2D uTexGradients; 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); // ws modulation @@ -52,5 +53,5 @@ void main() vfrag = do_light_shadowing( vfrag ); vfrag = apply_fog( vfrag, fdist ); - FragColor = vec4(vfrag, 1.0 ); + oColour = vec4(vfrag, 1.0 ); }