X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_depth.fs;h=8850503f78a5d6a8c4523bfe4ec633c38d6581ff;hb=fbe807d19b8a626c2d75002b286dd794f893473a;hp=1f6f93d18b1ee894340c129daec7bcc0067de962;hpb=b440efbe5785d114d08bb3f5ec0e09cad943006d;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_depth.fs b/shaders/scene_depth.fs index 1f6f93d..8850503 100644 --- a/shaders/scene_depth.fs +++ b/shaders/scene_depth.fs @@ -17,7 +17,9 @@ float water_depth( vec3 pos, vec3 halfview ) float d = dot( pnorm, halfview ); float t = dot((pnorm*pdist - pos), pnorm) / d; - return t * g_water_fog; + + // TODO: Make g_water_fog a material param + return t * 0.3;//g_water_fog; } void main()