From cf6354584feada3f2c5550fb20cc447fc2a83f1d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 09:11:09 +0200 Subject: [PATCH] CultMath: CultMath.Cycles.glsl regenerated for the power change CultMath.Tests passes 386 of 386 at this commit's tree. Builds. Co-Authored-By: Claude Sonnet 5.5 --- packages/cultmath/shaders/CultMath.Cycles.glsl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/cultmath/shaders/CultMath.Cycles.glsl b/packages/cultmath/shaders/CultMath.Cycles.glsl index 2e714996..d8f04bbb 100644 --- a/packages/cultmath/shaders/CultMath.Cycles.glsl +++ b/packages/cultmath/shaders/CultMath.Cycles.glsl @@ -29,12 +29,11 @@ const float CULTMATH_CYCLES_RGB_TO_Y_B = 0.0721927434; float cultmath_cycles_divide(float a, float b) { return b != 0.0 ? a / b : 0.0; } // safe_powf with compatible_powf. A negative base takes an integral exponent's parity; a base below zero -// with a fractional exponent is 0, and so is one with an exponent past the int range, where Cycles' int -// round trip cannot hold it. +// with a fractional exponent is 0. float cultmath_cycles_power(float a, float b) { float whole = b >= 0.0 ? floor(b) : ceil(b); - if (a < 0.0 && (b != whole || b >= 2147483648.0 || b < -2147483648.0)) + if (a < 0.0 && b != whole) return 0.0; if (b == 0.0) return 1.0;