CultMath intervals: cultmath_iv_* over float2(lo, hi) in C# and HLSL, with snoise and fbm ball bounds
math.Interval.cs and shaders/CultMath.Interval.hlsl (included from CultMath.hlsl after Phacelle; both tracked copies) add iv_point, iv_add, iv_sub, iv_neg, iv_mul, iv_scale, iv_abs, iv_min, iv_max, iv_sqr, iv_sqrt, iv_exp, iv_clamp, iv_saturate, iv_smoothstep, iv_lerp, iv_snoise_ball and iv_fbm_ball, and SNOISE_LIPSCHITZ = 10.099261 (1.10 x the refined max |snoise_grad| that NoiseBoundTests.MeasureLipschitz prints). iv_exp and iv_smoothstep widen by one ulp through asfloat(uint), added beside asuint as the HLSL intrinsic. The mirror test now compares 52 functions; the Unity package and the NuGet content files carry the new include. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d0ea37f8e4
commit
bbf5269751
13 changed files with 408 additions and 2 deletions
2
packages/cultmath/src/CultMath/math.Interval.cs.meta
Normal file
2
packages/cultmath/src/CultMath/math.Interval.cs.meta
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3eb757caae684b388921e28e3c87ba3a
|
||||
Loading…
Reference in a new issue