mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-12 02:08:18 +08:00
Slightly increase fade distance
This commit is contained in:
1 parent
35c601771e
commit
3720385b37
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user