From 4000619e743ba9fa1bf4dd65082a462fe52f261d Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 28 Jun 2026 22:06:37 -0400 Subject: [PATCH] do less math with windowResizeCheck --- shaders/shaders.properties | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/shaders/shaders.properties b/shaders/shaders.properties index dfb44d1..ed7a56d 100644 --- a/shaders/shaders.properties +++ b/shaders/shaders.properties @@ -574,10 +574,7 @@ uniform.vec3.lightningEffect = vec3(lightningFlash, lightningFlash, lightningFla # force LUT accumulation to have a high blend factor after a certain amount of time uniform.float.dayChangeSmooth = smooth(if(abs(smooth(worldDay, 0.05, 0.05) - worldDay) > 0.01, 0.0, 1.0), 300.0, 0.0) uniform.bool.worldTimeChangeCheck = abs(smooth(sunAngle, 1.0, 1.0) - sunAngle) > 0.01 - -uniform.bool.windowResizeCheck = (abs(smooth(viewWidth, 1.0, 1.0) - viewWidth) > 0.01) || (abs(smooth(viewHeight, 1.0, 1.0) - viewHeight) > 0.01) - -# uniform.int.randomInteger = randomInt() +uniform.bool.windowResizeCheck = abs(smooth((viewWidth+viewHeight), 1.0, 1.0) - (viewWidth+viewHeight)) > 0.01 #if WATER_ON_CAMERA_EFFECT_AMOUNT > 0 variable.float.waterState = smooth(if(isEyeInWater == 1,1.0,0.0),0.1,0.1)