CultLib/packages/cultmath/src/CultMath
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens e89fd68778 snoise tie rule: x over y, y over z, x over z (a total order) in C# and both HLSL copies
The cyclic non-strict step(x0.yzx, x0.xyz) made the four corners a non-simplex
where x0's components are equal: the origin and every (t, t, t) read a different
function (snoise(0) was -0.4358730, jumps up to 0.77). One strict compare, z
against x, gives simplexnoise1234's order. Off the tie set old and new return
the same bits.

NoiseGradTests.SnoiseIsContinuousOnTheSimplexDiagonal fails against the old
rule (0.054 within 1 ulp of (-53.6, -53.6, -53.6)). The origin golden is 0 and a
(1.25, 1.25, 1.25) diagonal row joins it. SNOISE_LIPSCHITZ and the GLSL follow
in the next commits, so the ratio pin and CommittedGlslEqualsLowering are red here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-04 03:15:32 +02:00
..
BatchMath.cs Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
BatchMath.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
bool2.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
bool2.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
bool3.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
bool3.cs.meta Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
bool4.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
bool4.cs.meta Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
BoundedLeastSquares.cs cultmath: BoundedLeastSquares doc states the cost gap is relative to |b|^2 2026-09-29 13:14:21 +02:00
BoundedLeastSquares.cs.meta cultmath: BoundedLeastSquares primal active-set solver 2026-09-29 01:33:08 +02:00
Color32.cs Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
Color32.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
CultCellular.cs Fix batch 1 (cellular/smin_grad): exact search, decorrelated id, finite F2=0 2026-09-25 20:40:28 +02:00
CultCellular.cs.meta Add smin_grad and cellular value-and-gradient primitives to CultMath 2026-09-25 19:17:39 +02:00
CultMath.asmdef Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
CultMath.asmdef.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
CultMath.csproj CultMath intervals: cultmath_iv_* over float2(lo, hi) in C# and HLSL, with snoise and fbm ball bounds 2026-10-02 19:52:33 +02:00
CultMath.csproj.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
CultMathTone.cs Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
CultMathTone.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
CultPhasor.cs CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +02:00
CultPhasor.cs.meta CultMath: phacelle, Johansen's Phacelle noise on 3D cells with an exact gradient 2026-09-29 23:51:02 +02:00
double2.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
double2.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
double3.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
double3.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
float2.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
float2.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
float2x2.cs Document where matrix row writes are silently lost 2026-09-14 14:18:00 +02:00
float2x2.cs.meta Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
float3.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
float3.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
float3x3.cs Document where matrix row writes are silently lost 2026-09-14 14:18:00 +02:00
float3x3.cs.meta Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
float4.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
float4.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
int2.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
int2.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
int3.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
int3.cs.meta Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
int4.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
int4.cs.meta Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
IsExternalInit.cs Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
IsExternalInit.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
math.cs snoise tie rule: x over y, y over z, x over z (a total order) in C# and both HLSL copies 2026-10-04 03:15:32 +02:00
math.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
math.Interval.cs CultMath intervals r3: iv_frustum_ball widened by its derived float32 rounding bound; extreme-family enclosure 2026-10-03 11:37:30 +02:00
math.Interval.cs.meta CultMath intervals: cultmath_iv_* over float2(lo, hi) in C# and HLSL, with snoise and fbm ball bounds 2026-10-02 19:52:33 +02:00
math.Phacelle.cs CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +02:00
math.Phacelle.cs.meta CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +02:00
quaternion.cs Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
quaternion.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
Random.cs Make CultMath HLSL-shaped: writable components, bool-vector comparisons 2026-09-14 13:29:59 +02:00
Random.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
rect.cs Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
rect.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
Swizzles.g.cs Add HLSL vector conversions, int clamp, and double frac to CultMath 2026-09-14 16:16:32 +02:00
Swizzles.g.cs.meta Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
UnscopedRefAttribute.cs Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
UnscopedRefAttribute.cs.meta Generate every HLSL swizzle and mixed constructor; fix intrinsic types 2026-09-14 13:57:02 +02:00
Voronoi.cs Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
Voronoi.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00