Make DH water transition much less noticable

This commit is contained in:
Merlin1809 committed 2025-04-11 17:59:54 +02:00
1 parent e223c35233
commit cd4f488767
1 file changed
+1 -1
+1 -1
View File
@@ -459,7 +459,7 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
vec3 viewPos = pos.xyz;
float viewDist = length(mat3(gbufferModelViewInverse) * viewPos + gbufferModelViewInverse[3].xyz);
float ditherFade = smoothstep(max(far-2,2), far, viewDist);
float ditherFade = smoothstep(max(far-32,32), far+4, viewDist);
if (step(bayerDither(), ditherFade) == 0.0) {
discard;