Skip to main content

BiomeType Enum

Type-safe biome identifiers.

Usage


getTreeConfigForBiome

Gets the tree configuration for a specific biome.
Parameters:
  • biomeId - Biome identifier (BiomeType enum value or string)
Returns: BiomeTreeConfig for the biome, or forest config as fallback Example:

BiomeTreeConfig

Configuration for tree distribution and placement in a biome.

Fields

Example


TreeSpawnConfig

Configuration for a specific tree type within a biome.

Fields

Examples

Mountain Tree:
Coastal Tree:
Desert Tree:

TreeId Enum

Type-safe tree identifiers.

Usage

Migration from Strings


buildBiomeConstantsJS

Generates JavaScript code for injecting biome constants into web workers.
Returns: JavaScript code string defining biome constants Example:
Generated Code:

Biome Configs

Forest Biome

Canyon Biome

Tundra Biome


Terrain LOD API

TerrainQuadTree and TerrainQuadNode API

Tree Instancing API

GLBTreeBatchedInstancer API reference

Resource System

Resource spawning and gathering

World API

World class and system management