NormalRegion
Defined in: packages/normals/src/descriptor.ts:117
Properties
Section titled “Properties”
optionalbump?:NormalBump
Defined in: packages/normals/src/descriptor.ts:123
Per-texel bump source. Default inherits from descriptor ('alpha').
direction?
Section titled “direction?”
optionaldirection?:NormalDirection
Defined in: packages/normals/src/descriptor.ts:125
Base tilt direction. Default inherits from descriptor ('flat').
elevation?
Section titled “elevation?”
optionalelevation?:number
Defined in: packages/normals/src/descriptor.ts:142
World-space elevation of the region in [0, 1], where 0 = ground
plane (floor) and 1 = top-of-wall (cap). Baked into the normal
atlas’s B channel and consumed by the light pass to compute
per-fragment light direction (L.z = lightHeight − elevation).
Default inherits from the descriptor, which defaults to 0. Cap regions typically set 1; tilted face regions typically set 0.5.
h:
number
Defined in: packages/normals/src/descriptor.ts:121
pitch?
Section titled “pitch?”
optionalpitch?:number
Defined in: packages/normals/src/descriptor.ts:130
Tilt angle in radians from flat. Ignored when direction === 'flat'.
Default inherits from descriptor, which defaults to Math.PI / 4.
strength?
Section titled “strength?”
optionalstrength?:number
Defined in: packages/normals/src/descriptor.ts:132
Gradient strength multiplier for this region. Default 1.
w:
number
Defined in: packages/normals/src/descriptor.ts:120
x:
number
Defined in: packages/normals/src/descriptor.ts:118
y:
number
Defined in: packages/normals/src/descriptor.ts:119