This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
CultMath/THIRD-PARTY-NOTICES.md
2026-07-17 07:45:28 +01:00

1.4 KiB

Third-Party Notices

2D Simplex Noise

math.simplex_noise and cultmath_simplex_noise port the textureless 2D simplex-noise function by Ian McEwan and Ashima Arts, as distributed by Stefan Gustavson's webgl-noise project and Unity Mathematics.

Advanced Terrain Erosion Filter

src/CultMath/AdvancedErosionFilter.cs and shaders/AdvancedErosionFilter.hlsl adapt the mathematical procedure from Rune Skovbo Johansen's Advanced Terrain Erosion Filter:

The CultMath files retain the MPL notice and separate the faithful planar filter from CultMath's spherical adaptation. Modifications include C#/HLSL type lowering, explicit bounded octave counts, finite zero-rounding behavior, and CultMath naming. CultMath replaces the reference floating hash with a shared integer avalanche hash so C# and GPU evaluation select identical cell pivots across devices; this changes the stochastic pattern, not the filter mechanics.

The technique builds on earlier work credited by the upstream author to Fewes and Clay John. The hash form follows the public shader math of Inigo Quilez.