hex-world
    Preparing search index...

    Interface TerrainChunkArrays

    Raw terrain attribute arrays for one chunk — position/color/cellIndex are vec3-per-vertex.

    interface TerrainChunkArrays {
        positions: Float32Array;
        colors: Float32Array;
        cellIndices: Float32Array;
        terrainTypes: Float32Array<ArrayBufferLike> | null;
        normals: Float32Array<ArrayBufferLike> | null;
        occlusion: Float32Array;
    }
    Index

    Properties

    positions: Float32Array
    colors: Float32Array
    cellIndices: Float32Array
    terrainTypes: Float32Array<ArrayBufferLike> | null
    normals: Float32Array<ArrayBufferLike> | null

    Flat per-face normals; null = not yet computed (compute on assembly).

    occlusion: Float32Array

    Per-vertex baked ambient occlusion, 0 (open) → 1 (fully enclosed). One float per vertex.