CultLib/packages/cultmath/unity/org.gamecult.cultmath
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 30448bb45e Re-pin SNOISE_LIPSCHITZ to 7.9640074 on the tie-fixed kernel
MeasureLipschitz on e89fd687 (Yggdrasil): sampled 7.1933103, refined 7.2400064,
x 1.10 = 7.9640074, witness (229.92526, 73.37927, -66.14595). The old 9.181147
sat on the diagonal tie. C#, both Interval.hlsl copies, the pin test's witness
and design.md's provenance numbers move together; CultMath.glsl follows with the
regenerated fixture.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-04 03:16:31 +02:00
..
Runtime CultMath 0.3.0: rebuilt tracked DLL and pdb (Windows, Starfire) 2026-10-02 16:05:23 +02:00
Shaders Re-pin SNOISE_LIPSCHITZ to 7.9640074 on the tie-fixed kernel 2026-10-04 03:16:31 +02:00
CHANGELOG.md CultMath 0.3.0: scope snoise constants to 3D in the changelog; Unity package is MIT AND MPL-2.0 2026-10-02 16:48:16 +02:00
CHANGELOG.md.meta Give the CultMath package changelog its Unity meta 2026-09-24 19:10:25 +02:00
LICENSE.md CultMath 0.3.0: scope snoise constants to 3D in the changelog; Unity package is MIT AND MPL-2.0 2026-10-02 16:48:16 +02:00
LICENSE.md.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
package.json CultMath 0.3.0: scope snoise constants to 3D in the changelog; Unity package is MIT AND MPL-2.0 2026-10-02 16:48:16 +02:00
package.json.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
README.md CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +02:00
README.md.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
Runtime.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
Shaders.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00
THIRD-PARTY-NOTICES.md CultMath 0.3.0: notices say the Unity package is MIT AND MPL-2.0, not MPL-2.0 as a whole 2026-10-02 16:56:55 +02:00
THIRD-PARTY-NOTICES.md.meta Move CultMath into the CultLib monorepo 2026-08-26 17:35:51 +02:00

CultMath for Unity

This is CultMath's Unity 2021.3-compatible Git-UPM surface. It contains the precompiled CultMath.dll, portable symbols, the numeric Shaders/CultMath.hlsl mirror (with its CultMath.Phacelle.hlsl include), and the CultMath.UnityBridge assembly.

CultMath.UnityBridge is the only C# source Unity compiles here. It holds the UnityEngine conversions the engine-free core cannot declare: ToCultMath() on Vector2/3/4, Vector2Int/3Int, Quaternion, and Color; ToUnity() on float2/3/4, int2/3, and quaternion; ToColor() on float4. C# only admits conversion operators on the source or target type, so these are extension methods rather than implicit casts. Import CultMath.UnityBridge to use them.

Unity does not compile CultMath's repository source tree. That source uses the current C# language and remains owned by the normal .NET project. The package imports only the tracked auto-referenced precompiled assembly, so consumers do not need csc.rsp language overrides or an asmdef propagation shim.

Build and inspect the package from the repository root:

.\scripts\build-unity-package.ps1

The builder fresh-builds CultMath for netstandard2.1, verifies the tracked DLL/PDB and stable Unity metadata, and stages an inspectable package under artifacts/unity/org.gamecult.cultmath.

Consume the repository package with:

"org.gamecult.cultmath": "https://github.com/GameCult/CultLib.git?path=/packages/cultmath/unity/org.gamecult.cultmath"

Production consumers should pin that URL to a commit or release tag.