TileNormalCustomData
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:31
Shape the LDtk / Tiled loader extracts from per-tile custom data when synthesizing regions. Authors populate these in the map editor’s tile-properties panel.
All fields optional — an untagged tile emits a single flat region
for its cell. Cap thickness values are in pixels; legacy *Px
aliases are accepted for back-compat and map to the unsuffixed
canonical fields.
Properties
Section titled “Properties”tileBump?
Section titled “tileBump?”
optionaltileBump?:NormalBump
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:39
Bump source override for the face region.
tileCap?
Section titled “tileCap?”
optionaltileCap?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:63
Shorthand — when no per-edge field is set, treated as tileCapTop.
tileCapBottom?
Section titled “tileCapBottom?”
optionaltileCapBottom?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:57
Cap thickness from the bottom edge in pixels.
tileCapBottomLeft?
Section titled “tileCapBottomLeft?”
optionaltileCapBottomLeft?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:75
N×N square flat cap at the bottom-left corner.
tileCapBottomPx?
Section titled “tileCapBottomPx?”
optionaltileCapBottomPx?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:83
tileCapBottomRight?
Section titled “tileCapBottomRight?”
optionaltileCapBottomRight?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:77
N×N square flat cap at the bottom-right corner.
tileCapLeft?
Section titled “tileCapLeft?”
optionaltileCapLeft?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:59
Cap thickness from the left edge in pixels.
tileCapLeftPx?
Section titled “tileCapLeftPx?”
optionaltileCapLeftPx?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:85
tileCapPx?
Section titled “tileCapPx?”
optionaltileCapPx?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:79
tileCapRight?
Section titled “tileCapRight?”
optionaltileCapRight?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:61
Cap thickness from the right edge in pixels.
tileCapRightPx?
Section titled “tileCapRightPx?”
optionaltileCapRightPx?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:87
tileCapTop?
Section titled “tileCapTop?”
optionaltileCapTop?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:55
Cap thickness from the top edge in pixels.
tileCapTopLeft?
Section titled “tileCapTopLeft?”
optionaltileCapTopLeft?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:71
Corner cap — N×N square flat cap at the top-left corner of the cell. Use when the tile art shows a small flat patch at that corner with the wall face wrapping around it in an L-shape (outer walls facing outward). Composes with edge caps — union of all cap rects is cap, complement is face.
tileCapTopPx?
Section titled “tileCapTopPx?”
optionaltileCapTopPx?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:81
tileCapTopRight?
Section titled “tileCapTopRight?”
optionaltileCapTopRight?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:73
N×N square flat cap at the top-right corner.
tileDir?
Section titled “tileDir?”
optionaltileDir?:NormalDirection
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:33
Screen-space direction the face tilts. See NormalDirection.
tileDirection?
Section titled “tileDirection?”
optionaltileDirection?:NormalDirection
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:35
Alias of tileDir.
tileElevation?
Section titled “tileElevation?”
optionaltileElevation?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:53
Elevation of the tile’s primary surface in [0, 1] (0 = ground plane, 1 = top-of-wall):
- Tiles with
tileDir(wall faces): applies to the face region. Caps always bake at 1.0 regardless. Default 0.5 (midway up). - Flat tiles (no
tileDirortileDir: 'flat'): applies to the whole cell. Use 1.0 for “all-cap” tiles (wall top viewed dead-on, roof patches, pillar caps). Unset → descriptor default, which defaults to 0 (ground plane = floor).
tilePitch?
Section titled “tilePitch?”
optionaltilePitch?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:37
Tilt angle override in radians. Inherits descriptor pitch when absent.
tileStrength?
Section titled “tileStrength?”
optionaltileStrength?:number
Defined in: packages/three-flatland/src/loaders/normalDescriptor.ts:41
Gradient strength override for the face region.