threejs-worldgen
    Preparing search index...

    Interface RoadSurfaceOptions

    Look of a RoadSurface. Plain JSON; every value is live.

    interface RoadSurfaceOptions {
        centreLine: CentreLine;
        colors: RoadColors;
        cracks: number;
        edgeLines: boolean;
        laneLines: boolean;
        lanes: number;
        patches: number;
        potholes: number;
        ruts: number;
        slabSize: number;
        states: MaterialStates;
        surface: RoadSurfaceKind;
        wear: number;
        width: number;
    }
    Index
    centreLine: CentreLine

    Centre line.

    colors: RoadColors

    Colours.

    cracks: number

    Asphalt cracks (0…1); damage adds more.

    edgeLines: boolean

    Solid lines along both edges.

    laneLines: boolean

    Dashed lines between lanes (when lanes > 1).

    lanes: number

    Lanes per direction.

    patches: number

    Asphalt patches (0…1).

    potholes: number

    Potholes on dirt and gravel (0…1); they fill with water when wet.

    ruts: number

    Dirt and gravel ruts (0…1); they fill with water when wet.

    slabSize: number

    Sidewalk slab size, metres.

    Weather floor (each pixel shows the larger of this and the context's state nodes).

    Carriageway surface.

    wear: number

    Use: polished tyre tracks, faded paint, deeper ruts, grass on dirt crowns (0…1).

    width: number

    Carriageway width (kerb to kerb), metres; markings are laid out on it.