baby lock the door and turn the lights down low
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_terrain.fs
index 7f7648a045a5c8a90eb1a97207917039de294cce..d9d0bf119f80746a4a3483e3bf9e0d352a8fa3f8 100644 (file)
@@ -6,12 +6,6 @@ uniform vec2 uBlendOffset;
 uniform vec3 uBoard0;
 uniform vec3 uBoard1;
 
-in vec2 aUv;
-in vec4 aNorm;
-in vec3 aCo;
-in vec3 aWorldCo;
-flat in ivec4 aLights;
-
 #include "common_scene.glsl"
 #include "motion_vectors_fs.glsl"
 
@@ -52,6 +46,6 @@ void main()
       vfrag = vec3(0.5);
    }
 
-   vfrag = scene_do_lighting( vfrag, qnorm );
+   vfrag = scene_compute_lighting( vfrag, qnorm, aWorldCo );
    oColour = vec4(vfrag, 1.0);
 }