X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_depth.fs;h=d805441c70a0a1fb0d0776d0376e4104048282ed;hb=refs%2Fheads%2Fmaster;hp=1f6f93d18b1ee894340c129daec7bcc0067de962;hpb=e311bbe2fa903a7e2a922f202f389b799193195d;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_depth.fs b/shaders/scene_depth.fs index 1f6f93d..d805441 100644 --- a/shaders/scene_depth.fs +++ b/shaders/scene_depth.fs @@ -17,6 +17,8 @@ float water_depth( vec3 pos, vec3 halfview ) float d = dot( pnorm, halfview ); float t = dot((pnorm*pdist - pos), pnorm) / d; + + // TODO: Make g_water_fog a material param return t * g_water_fog; }