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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-02 16:48:16 +02:00
commit 8ab384448c
3 changed files with 18 additions and 8 deletions

View file

@ -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

View file

@ -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
<https://www.mozilla.org/MPL/2.0/>. 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.

View file

@ -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"
},