region¶
Another layer applied only inside a rectangle or circle, feathered outside it: to confine craters to an area or flatten a landing pad.
| Key | Type | Default | Range | Unit | Description |
|---|---|---|---|---|---|
shape |
region shapes | {"type": "rectangle", ...} |
Area the inner layer is applied in: a rectangle or a circle. | ||
feather |
number | 0.0 |
[0, inf) | m | Distance in metres outside the shape over which the inner layer fades back to the unchanged height; 0 gives a hard edge. |
blend |
one of linear, smoothstep, smootherstep, gaussian |
"smoothstep" |
Curve of the fade across the feather. | ||
layer |
layers | {"type": "noise", ...} |
Layer applied only inside the shape. A crater layer here does not count as the crater layer for later boulder ejecta or secondaries. |
Every key with its default
{
"type": "region",
"shape": {
"type": "rectangle",
"min_x": 0.0,
"min_y": 0.0,
"max_x": 0.0,
"max_y": 0.0
},
"feather": 0.0,
"blend": "smoothstep",
"layer": {
"type": "noise",
"stack": [
{
"enabled": true,
"basis": "perlin",
"fractal": "fbm",
"blend": "add",
"seed": 0,
"wavelength": 1000.0,
"amplitude": 100.0,
"octaves": 8,
"lacunarity": 2.0,
"gain": 0.5,
"hurst": null,
"offset": 1.0,
"warp_amplitude": 0.0,
"warp_wavelength": 500.0
}
]
}
}
Used in: example_layers_regions