mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2026-10-10 13:13:03 +08:00
fix water exit effect activating in lava lol
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user