readd ripple fix...

This commit is contained in:
Merlin1809
2025-06-19 13:57:04 +02:00
parent 66bd96ab5f
commit 8602d4abf0
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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
+2 -3
View File
@@ -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);
}