mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-11 09:48:17 +08:00
Make DH water transition much less noticable
This commit is contained in:
1 parent
e223c35233
commit
cd4f488767
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user