Slightly increase fade distance

This commit is contained in:
Merlin1809 committed 2025-04-09 18:11:28 +02:00
1 parent 35c601771e
commit 3720385b37
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -448,7 +448,7 @@ void main() {
#ifdef DH_CHUNK_FADING
#if defined DISTANT_HORIZONS
float viewDist = length(playerpos);
float ditherFade = smoothstep(0.96*far, far, viewDist);
float ditherFade = smoothstep(1.00*far, 1.04*far, viewDist);
vec4 Albedo;
Albedo.rgb = texture2D_POMSwitch(texture, adjustedTexCoord.xy, vec4(dcdx,dcdy), ifPOM, textureLOD).rgb * color.rgb;
+1 -1
View File
@@ -457,7 +457,7 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
#if defined DISTANT_HORIZONS
float viewDist = length((mat3(gbufferModelViewInverse) * viewPos + gbufferModelViewInverse[3].xyz));
float ditherFade = smoothstep(0.96*far, 0.97*far, viewDist);
float ditherFade = smoothstep(1.03*far, 1.06*far, viewDist);
if (step(ditherFade, bayerDither()) == 0.0) {
discard;