update base:demo generator & update default bpd values
This commit is contained in:
parent
27196f6166
commit
7b0db7b660
@ -49,8 +49,8 @@ The main properties described in the configuration file:
|
||||
- **caption** - the generator display name. By default, it is generated from the id.
|
||||
- **biome-parameters** - the number of biome selection parameters (from 0 to 4). Default: 0.
|
||||
- **sea-level** - sea level (below this level, sea-layers will be generated instead of air). Default: 0.
|
||||
- **biomes-bpd** - number of blocks per point of the biome selection parameter map. Default: 8.
|
||||
- **heights-bpd** - number of blocks per point of the height map. Default: 8.
|
||||
- **biomes-bpd** - number of blocks per point of the biome selection parameter map. Default: 4.
|
||||
- **heights-bpd** - number of blocks per point of the height map. Default: 4.
|
||||
- **wide-structs-chunks-radius** - maximum radius for placing 'wide' structures, measured in chunks.
|
||||
|
||||
## Global variables
|
||||
|
||||
@ -49,8 +49,8 @@
|
||||
- **caption** - отображаемое имя генератора. По-умолчанию генерируется из id.
|
||||
- **biome-parameters** - количество параметров выбора биомов (от 0 до 4). По-умолчанию: 0.
|
||||
- **sea-level** - уровень моря (ниже этого уровня вместо воздуха будут генерироваться слои моря (sea-layers)). По-умолчанию: 0.
|
||||
- **biomes-bpd** - количество блоков на точку карты параметра выбора биомов. По-умолчанию: 8.
|
||||
- **heights-bpd** - количество блоков на точку карты высот. По-умолчанию: 8.
|
||||
- **biomes-bpd** - количество блоков на точку карты параметра выбора биомов. По-умолчанию: 4.
|
||||
- **heights-bpd** - количество блоков на точку карты высот. По-умолчанию: 4.
|
||||
- **wide-structs-chunks-radius** - масимальный радиус размещения 'широких' структур, измеряемый в чанках.
|
||||
|
||||
## Глобальные переменные
|
||||
|
||||
@ -71,18 +71,19 @@ function generate_heightmap(x, y, w, h, s, inputs)
|
||||
desertmap:cellnoise({x+52, y+326}, 0.3*s, 2, 0.2)
|
||||
desertmap:add(0.4)
|
||||
map:mixin(desertmap, inputs[1])
|
||||
--map:add(0.1)
|
||||
return map
|
||||
end
|
||||
|
||||
function generate_biome_parameters(x, y, w, h, s)
|
||||
local tempmap = Heightmap(w, h)
|
||||
tempmap.noiseSeed = SEED + 5324
|
||||
tempmap:noise({x, y}, 0.04*s, 6)
|
||||
tempmap:noise({x, y}, 0.08*s, 6)
|
||||
tempmap:mul(0.5)
|
||||
tempmap:add(0.5)
|
||||
local hummap = Heightmap(w, h)
|
||||
hummap.noiseSeed = SEED + 953
|
||||
hummap:noise({x, y}, 0.04*s, 6)
|
||||
hummap:noise({x, y}, 0.08*s, 6)
|
||||
tempmap:pow(3)
|
||||
hummap:pow(3)
|
||||
return tempmap, hummap
|
||||
|
||||
@ -204,10 +204,10 @@ struct GeneratorDef {
|
||||
uint biomeParameters = 0;
|
||||
|
||||
/// @brief Biome parameter map blocks per dot
|
||||
uint biomesBPD = 8;
|
||||
uint biomesBPD = 4;
|
||||
|
||||
/// @brief Heightmap blocks per dot
|
||||
uint heightsBPD = 8;
|
||||
uint heightsBPD = 4;
|
||||
|
||||
/// @brief Number of chunks must be generated before and after wide
|
||||
/// structures placement triggered
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user