X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water_fast.fs;fp=shaders%2Fscene_water_fast.fs;h=f89cee55ead0ab3e9da1b8305b43605261f6b854;hb=ad4482080bf2dc650945f7bb0765ca8dba76155f;hp=77aa569dd3dd7121345bfa1fb6c5ac78eee58720;hpb=a5d462e0b43a8f0c4a36a17a11636a56f324e45f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water_fast.fs b/shaders/scene_water_fast.fs index 77aa569..f89cee5 100644 --- a/shaders/scene_water_fast.fs +++ b/shaders/scene_water_fast.fs @@ -55,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 ); }