X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fvblend.fs;h=b2e9928777566ecb335d0b419c93c44257abcb76;hb=2383f834f7c7890b12fd4fee9387f4cd3ca3b1e0;hp=a30f83c9ee29f12d5020f206c92b649c6da1821d;hpb=d57b7661518800479c00300ce57407378696eec9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/vblend.fs b/shaders/vblend.fs index a30f83c..b2e9928 100644 --- a/shaders/vblend.fs +++ b/shaders/vblend.fs @@ -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 ); }