X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water_fast.fs;h=f89cee55ead0ab3e9da1b8305b43605261f6b854;hb=HEAD;hp=e7cbc487565af8f85230e54ed9ca84d7afec2153;hpb=f3a2490079baf440238b78e54f4476649eddbda2;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water_fast.fs b/shaders/scene_water_fast.fs index e7cbc48..f89cee5 100644 --- a/shaders/scene_water_fast.fs +++ b/shaders/scene_water_fast.fs @@ -9,12 +9,7 @@ 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 "light_clearskies_stddef.glsl" #include "common_scene.glsl" #include "motion_vectors_fs.glsl" @@ -60,4 +55,5 @@ void main() vec4 vsurface = water_surf( halfview, surfnorm, depthvalue ); vsurface.a -= fdist; oColour = mix( vsurface, vec4(1.0,1.0,1.0,0.5), fband ); + oColour.rgb = scene_compute_lighting( oColour.rgb, aNorm.xyz, aWorldCo ); }