X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water.fs;h=9cf652d9ae7711d82b54f48a1eeb33abefc4616e;hb=e61356f70eddb79f05d7b9e329e91963ec74f817;hp=329374f9dfb80cba7774c186847b909bd1104b6a;hpb=f3a2490079baf440238b78e54f4476649eddbda2;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water.fs b/shaders/scene_water.fs index 329374f..9cf652d 100644 --- a/shaders/scene_water.fs +++ b/shaders/scene_water.fs @@ -12,12 +12,6 @@ uniform vec3 uBoard1; uniform vec3 uShoreColour; uniform vec3 uOceanColour; -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" @@ -78,4 +72,5 @@ void main() vec4 vsurface = water_surf( halfview, surfnorm, depthvalue, beneath, above ); vsurface.a -= fdist; oColour = mix( vsurface, vec4(1.0,1.0,1.0,0.5), fband ); + oColour.rgb = scene_do_lighting( oColour.rgb, aNorm.xyz ); }