Skip to main content

Interface: NTCChannel

One entry of the material's channel vocabulary - see CHANNELS' doc comment below for what each field means. resolveNode/resolveConstant pull this channel's raw value off a source material; applyActive/ applyConstant apply a trained slice, or a resolved constant, onto a reconstructed NTCNodeMaterial. Node types are left as any - they are TSL node-graph values, not plain JS values.

Extended by​

Properties​

activation?​

optional activation?: NTCActivation


applyActive​

applyActive: (targetMaterial, sliceNode) => void

Parameters​

targetMaterial​

NTCMaterialLike

sliceNode​

any

Returns​

void


applyConstant​

applyConstant: (targetMaterial, constantValue) => void

Parameters​

targetMaterial​

NTCMaterialLike

constantValue​

NTCConstantValue

Returns​

void


clampRange​

clampRange: [number, number] | null


decodeConstant?​

optional decodeConstant?: (value) => NTCConstantValue

Parameters​

value​

NTCConstantValue

Returns​

NTCConstantValue


defaultValue​

defaultValue: NTCConstantValue


key​

key: string


nodeKeys​

nodeKeys: string[]


resolveConstant​

resolveConstant: (material) => NTCConstantValue

Parameters​

material​

NTCMaterialLike

Returns​

NTCConstantValue


resolveNode​

resolveNode: (material) => any

Parameters​

material​

NTCMaterialLike

Returns​

any


size​

size: number


transformBakeComponent?​

optional transformBakeComponent?: (component, index) => any

Parameters​

component​

any

index​

number

Returns​

any


type?​

optional type?: string