X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fvblend.fs;h=b2e9928777566ecb335d0b419c93c44257abcb76;hb=76042e561d89b232f04cac8a431b5cd7b30a6b9d;hp=75eed174b3145681621a88296205008cc4840f69;hpb=98ecdd9f0377f1563566fe4d3d3b8185a055ec4d;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/vblend.fs b/shaders/vblend.fs index 75eed17..b2e9928 100644 --- a/shaders/vblend.fs +++ b/shaders/vblend.fs @@ -1,9 +1,8 @@ -out vec4 FragColor; - uniform sampler2D uTexGarbage; uniform sampler2D uTexGradients; uniform vec3 uCamera; -uniform vec4 uPlane; +uniform vec3 uBoard0; +uniform vec3 uBoard1; in vec4 aColour; in vec2 aUv; @@ -12,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 @@ -53,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 ); }