Function: buildDebugViewColorNode()
buildDebugViewColorNode(
channel,valueNode):any
Builds one channel's unlit debug-view color node - widening a type: 'normal' channel's described size to 3 first, since by the time a value
reaches here it's always the fully TBN-reconstructed 3-component vector
(whether trained-and-reconstructed or the [0,0,1] constant fallback), not
the raw 2-component (dx, dy) the network itself trains against - feeding
the real 2-component channel descriptor would hit previewColor's
size === 2 branch, which hardcodes blue to 0 and silently discards z.
(See OUTPUT_TYPES.normal.previewSize in NTCOutputTypes.js.) Shared
between NTCSource.buildChannelPreviewMaterials (the teacher
side) and NTCNodeMaterial.setDebugView (the neural side) so
the two can't drift apart on this widening.
Parameters
channel
valueNode
any
Returns
any