needs a lot of cleaning but lights are OK
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_water.fs
index 892f0db6132e6d6d53186fc4560ca2f602d7a7ef..9cf652d9ae7711d82b54f48a1eeb33abefc4616e 100644 (file)
@@ -72,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 );
 }