Skip to content

NormalRegion

Defined in: packages/normals/src/descriptor.ts:117

optional bump?: NormalBump

Defined in: packages/normals/src/descriptor.ts:123

Per-texel bump source. Default inherits from descriptor ('alpha').


optional direction?: NormalDirection

Defined in: packages/normals/src/descriptor.ts:125

Base tilt direction. Default inherits from descriptor ('flat').


optional elevation?: 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


optional pitch?: 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.


optional strength?: 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