threejs-worldgen
    Preparing search index...

    Interface Weather

    Weather and wear, each 0..1 (default 0). Hooks for a shared weather layer: set them per material group on CityOptions.weather, or per building with City.setBuildingWeather; the larger of the two applies. All are shader uniforms or a small data texture: changing them costs nothing.

    interface Weather {
        burn: number;
        damage: number;
        snow: number;
        wetness: number;
    }
    Index
    burn: number

    Fire damage: charred patches, glowing embers near 1.

    damage: number

    Wear and destruction: cracks, missing patches, broken windows, potholes.

    snow: number

    Snow cover on upward-facing surfaces (roofs, ledges, roads outside tyre tracks).

    wetness: number

    Rain: darker albedo, glossy surfaces, puddles on roads.