remove underwater distortion. make AO in sunlight also be on SSS.

This commit is contained in:
Xonk
2024-11-16 01:34:37 -05:00
parent 296168cd25
commit 9145d19e46
3 changed files with 19 additions and 9 deletions

View File

@ -384,7 +384,7 @@ vec4 GetVolumetricClouds(
#if defined DISTANT_HORIZONS
float maxdist = dhFarPlane;
#else
float maxdist = far + 16*5.0;
float maxdist = far*4.0;
#endif
float lViewPosM = length(viewPos) < maxdist ? length(viewPos) - 1.0 : 100000000.0;