mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-10 04:53:07 +08:00
readd ripple fix...
This commit is contained in:
@@ -4,7 +4,7 @@ Changes/additions compared to Xonk's unstable-development branch:
|
||||
+ Additional cirrus & cumulonimbus cloud layers
|
||||
+ Distant Horizons chunk fading
|
||||
+ Moon texture with phases
|
||||
+ Improved Puddles and Snow overlays
|
||||
+ Improved Puddles, Snow Overlay and Rain Ripples
|
||||
+ Better mod support
|
||||
+ Much better emissives
|
||||
+ Star rotation based on moon rotation
|
||||
|
||||
@@ -552,9 +552,8 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
|
||||
waterPos.xyz = getParallaxDisplacement(waterPos, playerPos);
|
||||
|
||||
#ifdef RIPPLE_WATER
|
||||
float effectStrength = smoothstep(0.85, 1.0, lightmap.y);
|
||||
|
||||
if(viewDist < 35) {
|
||||
if(viewDist < 35 && rainStrength > 0.0 && abs(worldSpaceNormal.z) < 0.95 && abs(worldSpaceNormal.x) < 0.95) {
|
||||
float effectStrength = smoothstep(0.85, 1.0, lightmap.y);
|
||||
rippleBump = ripples(feetPlayerPos.xz+cameraPosition.xz);
|
||||
waterPos.xyz += RIPPLE_STRENGTH * rippleBump * rainStrength * effectStrength * smoothstep(35, 10, viewDist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user