hex-world
    Preparing search index...

    Interface TerrainMaterialOptions

    interface TerrainMaterialOptions {
        texScale?: number;
        lightDir?: Vector3;
        lightColor?: Color;
        ambient?: Color;
        triplanarSharpness?: number;
        strata?: CliffStrataOptions;
    }
    Index

    Properties

    texScale?: number
    lightDir?: Vector3
    lightColor?: Color
    ambient?: Color
    triplanarSharpness?: number

    Triplanar blend exponent — how hard the shader commits to one projection axis. Default 8: a vertical wall takes its side projection almost purely. Lower values widen the cross-fade, which softens the transition across terrace faces at the cost of a little blur on them. Clamped to a minimum of 1 — an exponent of 0 would make pow(0, 0) on an axis-aligned face, which is undefined and shows up as NaN pixels.

    Cliff strata styling, applied at construction. Equivalent to calling configureCliffStrata afterwards; here so a .hexpack can ship the bedding that matches its rock.