Taos API Reference
    Preparing search index...

    Module terrain

    The TerrainSystem CDLOD heightmap renderer: procedural or image-driven heights, virtual-texture page streaming, PBR layer splatting, quality presets, and the render-graph feature wiring.

    Enumerations

    TerrainQuality

    Classes

    TerrainSystem

    Interfaces

    HeightmapLoadOptions
    TerrainSystemOptions
    HeightmapOptions

    Maps the heightmap texture passed to TerrainSystem.setHeightmap onto world space.

    Variables

    WORLD_EXTENT
    DEFAULT_HEIGHT_SCALE
    LOD_GRID
    MAX_PATCHES
    INDIRECT_ARGS_BYTES

    Functions

    loadHeightmapTexture

    Fetch and decode a grayscale heightmap image into an r16float texture. The R channel of the decoded image is read as height. Throws if the fetch or decode fails (so callers can fall back to procedural generation).

    heightmapDataToTexture

    Upload a normalized [0, 1] Float32 height field as an r16float texture. data must be res * res row-major samples.