Skip to main content

Module noise_provider

Module noise_provider 

Source
Expand description

NoiseProvider — a built-in CPU fBm-terrain CpuSurfaceProvider.

Self-contained (no streaming): every chunk’s colour / height / normal is computed on the bake worker from 3-D fractal Perlin noise over the chunk’s world directions — continents and hills comparable in character to the GPU terrain_noise_3d.slang path (it need NOT be byte-identical). Colour is a height-based ramp (blue seas → green → brown → white peaks); the normal is a finite difference of the height field. The provider is parametrised by the same CesBuilder exports that drive the GPU noise, so the CPU-noise planet is tunable like the GPU one.

Height is stored as a signed displacement FRACTION of the radius, so height_scale is 1.0 and the GPU surface radius becomes radius · (1 + height).

Structs§

NoiseParams
Plain, Send + Sync noise parameters (derived from CesBuilder exports).
NoiseProvider
A built-in CPU fBm-terrain provider.