X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water.fs;fp=shaders%2Fscene_water.fs;h=c40e246f917819b0b871ecf669dffa72966cd106;hb=0ca7f5ca2560908de1a03db112df67e52b476107;hp=9cf652d9ae7711d82b54f48a1eeb33abefc4616e;hpb=98b9bcf0e10bc02cf679d03fa269613e140ba878;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water.fs b/shaders/scene_water.fs index 9cf652d..c40e246 100644 --- a/shaders/scene_water.fs +++ b/shaders/scene_water.fs @@ -72,5 +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 ); + oColour.rgb = scene_compute_lighting( oColour.rgb, aNorm.xyz, aWorldCo ); }