hex-world
    Preparing search index...

    Interface CellSurfaceOptions

    interface CellSurfaceOptions {
        elevationScale?: number;
        elevPerturbStrength?: number;
        noiseScale?: number;
        isWater?: (terrain: number) => boolean;
        surfaceLift?: number;
    }
    Index

    Properties

    elevationScale?: number

    World units per elevation step. Must match the terrain geometry's elevationScale. Default ELEVATION_SCALE.

    elevPerturbStrength?: number

    Must match ChunkGeometryOptions.elevPerturbStrength. Default 0.2.

    noiseScale?: number

    Must match ChunkGeometryOptions.noiseScale. Default 0.35.

    isWater?: (terrain: number) => boolean

    Liquid predicate. When provided and the cell's terrain is liquid, the computed water surface Y is returned instead of the terrain floor — useful for boats or floating props. Omit to always use the terrain floor.

    surfaceLift?: number

    Y lift applied to water surfaces (matches WaterGeometryOptions.surfaceLift). Default 0.02.