Skip to main content

Function: buildCompositeBandsProps()

buildCompositeBandsProps(mapping, bands): Partial<CompositeBandsProps>

Defined in: composite-bands.ts:120

Maps named bands and their UV transforms to CompositeBandsProps slot indices.

Assigns each unique band name to a fixed slot (0–3), builds the channelMap that maps RGBA output channels to slots, and fills unused slots with a placeholder texture to satisfy WebGL binding requirements.

Parameters

mapping

Which named band goes to which RGBA channel.

a?

string

b?

string

g?

string

r

string

bands

Map<string, { texture: Texture; uvTransform: UvTransform; }>

Map of band name to texture + UV transform.

Returns

Partial<CompositeBandsProps>

Props ready to pass to { module: CompositeBands, props: ... }.

See

CompositeBands