From 8ab384448cc0774f83c961fccb17ae16ffc136b1 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 2 Oct 2026 16:48:16 +0200 Subject: [PATCH] CultMath 0.3.0: scope snoise constants to 3D in the changelog; Unity package is MIT AND MPL-2.0 2D snoise keeps r^2 0.5 and scale 130; only the permutation (+10) changed. package.json license and LICENSE.md now match CultMath.csproj: MIT overall, Phacelle files MPL-2.0 (operator ruling cultmath-license-mit-and-mpl). Co-Authored-By: Claude Opus 5.5 --- .../unity/org.gamecult.cultmath/CHANGELOG.md | 11 ++++++----- .../cultmath/unity/org.gamecult.cultmath/LICENSE.md | 13 +++++++++++-- .../unity/org.gamecult.cultmath/package.json | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md b/packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md index 74c1992d..d02a6aab 100644 --- a/packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md +++ b/packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md @@ -11,11 +11,12 @@ backfilled here; see `docs/semver-policy.md` for why. - `math.snoise(float3)` and `math.snoise(float2)`, and their HLSL mirrors `cultmath_snoise`, return different values. The kernel now follows - stegu/webgl-noise: the falloff `r^2` constant is 0.5 (was 0.6), the output - scale is 105 (was 42), and 2D and 3D share one permutation offset of +10. - This removes the value discontinuities the 3D kernel had at simplex cell - boundaries. Any content seeded from `snoise` changes; regenerate it when - you take this version. + stegu/webgl-noise. For 3D only, the falloff `r^2` constant is 0.5 (was 0.6) + and the output scale is 105 (was 42). For 2D, the falloff constant (0.5) and + the output scale (130) are unchanged. In both, the shared permutation offset + is now +10 (was +1), which changes the values of both. This removes the value + discontinuities the 3D kernel had at simplex cell boundaries. Any content + seeded from `snoise` changes; regenerate it when you take this version. ### Added diff --git a/packages/cultmath/unity/org.gamecult.cultmath/LICENSE.md b/packages/cultmath/unity/org.gamecult.cultmath/LICENSE.md index 7e18d22d..e31bf344 100644 --- a/packages/cultmath/unity/org.gamecult.cultmath/LICENSE.md +++ b/packages/cultmath/unity/org.gamecult.cultmath/LICENSE.md @@ -1,8 +1,17 @@ # CultMath License -CultMath is licensed under the Mozilla Public License 2.0 (`MPL-2.0`). +CultMath is licensed under the MIT License (`MIT`), except for the Phacelle +files, which are licensed under the Mozilla Public License 2.0 (`MPL-2.0`): -The complete license text is available from the Mozilla Foundation at +- `Shaders/CultMath.Phacelle.hlsl` +- the Phacelle sources compiled into `Runtime/Plugins/CultMath.dll` + (`math.Phacelle.cs` and `CultPhasor.cs` in the GameCult/CultLib repository) + +The package license expression is therefore `MIT AND MPL-2.0`, matching the +`GameCult.Math` NuGet package. MPL-2.0 is file-level: it applies to those files +and not to the rest of CultMath. + +The MPL-2.0 text is available from the Mozilla Foundation at . Source and modification history for the precompiled assembly in this package are available in the GameCult/CultLib repository (`packages/cultmath`) at the corresponding package tag. diff --git a/packages/cultmath/unity/org.gamecult.cultmath/package.json b/packages/cultmath/unity/org.gamecult.cultmath/package.json index ed9ca931..5cd88f8d 100644 --- a/packages/cultmath/unity/org.gamecult.cultmath/package.json +++ b/packages/cultmath/unity/org.gamecult.cultmath/package.json @@ -4,7 +4,7 @@ "version": "0.3.0", "unity": "2021.3", "description": "Precompiled CultMath numeric primitives and matching HLSL semantics for GameCult Unity runtimes.", - "license": "MPL-2.0", + "license": "MIT AND MPL-2.0", "author": { "name": "GameCult" },