CultLib/packages/cultmath/src/CultMath
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 0acc3728ed CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points
MPL-2.0 is file-level and the Phacelle port sat inside MIT files. phacelle and
CultPhasor now live in math.Phacelle.cs and CultPhasor.cs, and cultmath_phacelle
in CultMath.Phacelle.hlsl (included by CultMath.hlsl, both tracked copies), each
with the MPL header and Johansen / Luke Mitchell attribution. math stays one
partial class, so math.phacelle is called exactly as before. The GameCult.Math
package declares MIT AND MPL-2.0 and packs THIRD-PARTY-NOTICES.md and the new
include; the Unity LICENSE.md points at CultLib; build-unity-package.ps1
requires the new include.

The random sweeps never met a cell whose box bound sits just under the 2.25 cut
while its weight is still nonzero, so cuts of 2.245, 2.24 and 2.2 survived.
Six hard-coded points (found by an offline search) sit next to such cells; the
C# pruned-vs-unpruned test and the HLSL mirror test both use them, with a
witness check that re-derives the property from the hash.

Docs: the prune keeps about 45 of 64 cells (14 is the nonzero-weight count),
the support radius is 1.49998 (d^2 = 2.24995), normalization's range and
saturation, W = 0 only for adversarial hashes, and the support-edge gradient
seam size.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:34:27 +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: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +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 CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +02:00
math.cs.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +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