threejs-worldgen
    Preparing search index...

    Variable ROOF_PARTSConst

    ROOF_PARTS: {
        brick: 3;
        concrete: 1;
        glass: 2;
        metal: 4;
        railing: 6;
        roof: 0;
        wood: 5;
    } = ...

    Roof-batch part codes (facade.x on roof geometry): what a surface is, so the roof shader can colour it. Walls use facade.x for the building style instead.

    Type Declaration

    • Readonlybrick: 3

      Brick (chimneys).

    • Readonlyconcrete: 1

      Concrete (rooftop plant, balcony slabs).

    • Readonlyglass: 2

      Glazing (saw-tooth roofs).

    • Readonlymetal: 4

      Metal (tanks, antennas, AC units).

    • Readonlyrailing: 6

      Balcony railings.

    • Readonlyroof: 0

      Roof surface (patterned by roof material, coloured by tint).

    • Readonlywood: 5

      Wood (stilts).