Skip to main content

Variable: OUTPUT_TYPES

const OUTPUT_TYPES: Record<string, NTCOutputType>

Small registry of the composite "output types" this addon knows how to reconstruct/preview beyond a bare scalar or fixed-size vector - keyed by the channel descriptor's optional type field (see NTCFormat. CHANNELS). A channel that doesn't need any of this (every plain scalar/ color channel) simply omits type, or sets it to one of the generic 'float'/'float2'/'float3'/'color' labels, which have no entry here and are handled by size alone - this registry only needs entries for types that have real behavior attached (a preview-time size override, a shared reconstruction function), not every label in the vocabulary.

normal: both normal and clearcoatNormal train a 2-component tangent-space (dx, dy) offset but are consumed (and previewed) as a fully TBN-reconstructed 3-component view-space vector - see reconstructFinalNormal above and previewSize below.