threejs-worldgen
    Preparing search index...

    Interface FacadeOptions

    Facade and roof look. Everything except the palettes is a shader uniform (instant to change).

    interface FacadeOptions {
        frame: string;
        glass: string;
        lightIntensity: number;
        night: number;
        patternScale: number;
        roofs: Record<RoofMaterial, string[]>;
        variation: number;
        walls: Record<WallMaterial, string[]>;
        windowLight: string;
        windows: Record<BuildingStyle, WindowStyle>;
    }
    Index
    frame: string

    Window frame colour.

    glass: string

    Window glass colour.

    lightIntensity: number

    Brightness of lit windows.

    night: number

    0 = day, 1 = night: how much lit windows glow. Drive it from a day/night cycle.

    patternScale: number

    Size of the procedural wall and roof patterns (bricks, planks, tiles): 1 = real-world size.

    roofs: Record<RoofMaterial, string[]>

    Roof colours per material; flat roofs use concrete (baked into geometry).

    variation: number

    ± brightness jitter per building, 0..1 (baked into geometry).

    walls: Record<WallMaterial, string[]>

    Wall colours per material; each building picks one (baked into geometry).

    windowLight: string

    Colour of lit windows (#rrggbb).

    windows: Record<BuildingStyle, WindowStyle>

    Window grid per building style.