threejs-worldgen
    Preparing search index...

    Variable BUILDING_VERTEXConst

    BUILDING_VERTEX: { bid: 1; facade: 4; normal: 3; position: 3; tint: 3; uv: 2 } = ...

    Vertex attributes of building geometry (walls and roofs share them so both fit any BatchedMesh).

    Type Declaration

    • Readonlybid: 1

      Building id (per-building weather lookup).

    • Readonlyfacade: 4

      Walls: style code (+8 = shops), per-wall seed, wall length (0 = no windows), material. Roofs: part, seed, 0, material.

    • Readonlynormal: 3

      Flat face normal.

    • Readonlyposition: 3

      Position relative to the settlement centre.

    • Readonlytint: 3

      Wall or roof colour (linear RGB).

    • Readonlyuv: 2

      Walls: metres along the wall, metres above the ground floor. Roofs: pattern coordinates in metres.