X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water_fast.fs;h=f89cee55ead0ab3e9da1b8305b43605261f6b854;hb=4eccfd7252f8ff165670842df537441afae5458b;hp=62672d468594e411a12a58cb275cd11920979f18;hpb=409edea2cf6271956137918e4e0b4f1c2addf620;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water_fast.fs b/shaders/scene_water_fast.fs index 62672d4..f89cee5 100644 --- a/shaders/scene_water_fast.fs +++ b/shaders/scene_water_fast.fs @@ -9,6 +9,7 @@ uniform vec3 uBoard1; uniform vec3 uShoreColour; uniform vec3 uOceanColour; +#include "light_clearskies_stddef.glsl" #include "common_scene.glsl" #include "motion_vectors_fs.glsl" @@ -54,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 ); }