mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
update doc/*/world-generation.md
This commit is contained in:
parent
ab64f90687
commit
96ea92d4ba
3 changed files with 24 additions and 0 deletions
|
|
@ -284,6 +284,14 @@ A method that generates simplex noise, adding it to the existing values.
|
|||
|
||||
The noise seed can be specified in the `map.noiseSeed` field.
|
||||
|
||||
By default, noise octaves are mixed using addition:
|
||||
|
||||
$noise_{out} = noise_{source} + noise_{applied} * 2^{-{octave}}$
|
||||
|
||||
To obtain more normalized multi-octave noise, you can enable the `map.normalNoise = true` flag, which changes the scheme:
|
||||
|
||||
$noise_{out} = noise_{source} * (1 - 2^{-{octave}}) + noise_{applied} * 2^{-{octave}}$
|
||||
|
||||
```lua
|
||||
map:noise(
|
||||
-- coordinate offset
|
||||
|
|
@ -313,6 +321,10 @@ The noise seed can be specified in the `map.noiseSeed` field.
|
|||
|
||||

|
||||
|
||||
> [!NOTE] cell noise looks better with `map.normalNoise = true`
|
||||
|
||||

|
||||
|
||||
### heightmap:resize(...)
|
||||
|
||||
```lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue