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

This reverts commit f8d1b0b8da.
This commit is contained in:
MikiP98
2024-11-16 21:39:26 +01:00
parent 8f2dd50f81
commit cf3346232e
3 changed files with 9 additions and 19 deletions

View File

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