fix water exit effect activating in lava lol

This commit is contained in:
Xonk
2026-03-07 17:38:38 -05:00
parent ef165beb71
commit 209dfcb484
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ void main() {
#endif
#if WATER_ON_CAMERA_EFFECT_AMOUNT > 0
if(waterInteract > 0.0001 && isEyeInWater < 2) getWaterDistortionEffects(texcoord_offset);
if(waterInteract > 0.0001 ) getWaterDistortionEffects(texcoord_offset);
#endif
#if ON_FIRE_DISTORT_EFFECT_AMOUNT > 0
+2 -2
View File
@@ -516,8 +516,8 @@ uniform.float.dayChangeSmooth = smooth(if(abs(smooth(worldDay, 0.05, 0.05) - wor
uniform.bool.worldTimeChangeCheck = abs(smooth(sunAngle, 1.0, 1.0) - sunAngle) > 0.01
#if WATER_ON_CAMERA_EFFECT_AMOUNT > 0
variable.float.waterState = smooth(if(isEyeInWater == 0,1.0,0.0),0.1,0.1)
variable.float.lerptime = if(waterState < 0.1 || waterState > 0.9, 100000000000000.0, 0.0)
variable.float.waterState = smooth(if(isEyeInWater == 1,1.0,0.0),0.1,0.1)
variable.float.lerptime = if((waterState < 0.1 || waterState > 0.9), 100000000000000.0, 0.0)
uniform.float.waterInteract = smooth(if(waterState < 0.1 || waterState > 0.9, 1.0, 0.0),5.0,0.0)
variable.vec3.velocity = vec3(cameraPosition.x-previousCameraPosition.x,cameraPosition.y-previousCameraPosition.y,cameraPosition.z-previousCameraPosition.z)