Shaders use cultmath_snoise from CultMath.hlsl #13
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/shaders-use-cultmath-hlsl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GalaxyMap, Clouds, Lightning.compute and SimplexBrush now include
Packages/org.gamecult.cultmath/Shaders/CultMath.hlsl(pinned cultmath-unity-v0.5.0) and callcultmath_snoisedirectly, so GPU fBm matches the CPU snoise used by Settings/Environment/GlobalData/LightningCompute.Deleted from Assets/Plugins/GPU Noise (with .meta): ClassicNoise2D/3D, SimplexNoise3D, SimplexNoiseGrad3D (no remaining includers).
Kept: SimplexNoise2D + SimplexNoiseGrad2D for Background.shader. Gap: CultMath has no 2D gradient (
cultmath_snoise_gradis float3 -> float4 only), and Background uses 2Dsnoise_grad(float2 -> float2). Left on its own include; not replaced.Verification: Aetheria.Shared.Tests focused filter (Settings/Environment/GlobalData/Lightning/Noise/Galaxy) 26/26 pass; no test pins snoise numbers, no goldens changed. fxc cs_5_0 probe of float2/float3 cultmath_snoise against the tag's CultMath.hlsl (+ its 4 sibling includes) compiled on Starfire. Not verified: Unity import/compile of the shaders themselves, visual change (noise values shift from the old GPU Noise copies by design).
🤖 Generated with Claude Code