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