Function: resolveMaterialChannelNodes()
resolveMaterialChannelNodes(
material,channels?):Record<string,TSLNode>
Resolves every channel in a channel array (see NTCFormat.
CHANNELS, or NTCFormat.js's doc comment on the descriptor
shape) to its raw (physical, un-encoded) TSL node, via each channel's own
resolveNode(material). This is a fully generic loop - it has no
knowledge of what any particular channel key means; that knowledge lives
entirely in the channel descriptor itself (see NTCFormat.js).
Baking, channel-preview materials, and constant-channel detection all
build on top of this (or, for channels classified as constant, each
channel's own resolveConstant, called from classifyMaterialChannels
below).
A channel without its own resolveNode (only possible for a caller-
supplied alwaysConstant channel that skips node resolution entirely -
see classifyMaterialChannels) falls back to its resolved constant value,
converted to a node, so every channel still has some preview-able node
here even if it's never actually driven by the network.
Parameters
material
any
channels?
any[] = CHANNELS
Returns
Record<string, TSLNode>