Open Sceat opened 10 months ago
world usage example:
src/core/utils/terrain/world_compute_worker.js
init_world
import { Biome, Heightmap, BlocksPatch, } from '@aresrpg/aresrpg-world'
import { biome_mapping_conf, sea_level, world_patch_size, } from './world_settings.js'
const init_world = () => { BlocksPatch.patchSize = world_patch_size Heightmap.instance.heightmap.params.spreading = 0.42 // (1.42 - 1) Heightmap.instance.heightmap.sampling.harmonicsCount = 6 Heightmap.instance.amplitude.sampling.seed = 'amplitude_mod' // Biome (blocks mapping) Biome.instance.setMappings(biome_mapping_conf) Biome.instance.params.seaLevel = sea_level }
init_world()
world usage example:
src/core/utils/terrain/world_compute_worker.js
init_world
from previous file and it should work OOTBimport { biome_mapping_conf, sea_level, world_patch_size, } from './world_settings.js'
const init_world = () => { BlocksPatch.patchSize = world_patch_size Heightmap.instance.heightmap.params.spreading = 0.42 // (1.42 - 1) Heightmap.instance.heightmap.sampling.harmonicsCount = 6 Heightmap.instance.amplitude.sampling.seed = 'amplitude_mod' // Biome (blocks mapping) Biome.instance.setMappings(biome_mapping_conf) Biome.instance.params.seaLevel = sea_level }
init_world()