NodeFunction

Last modified: Sep 4, 2025

Base class for node functions. A derived module must be implemented for each supported native shader language. Similar to other Node* modules, this class is only relevant during the building process and not used in user-level code.

Constructor

new NodeFunction(type, inputs, name?, precision?)
ParameterTypeDefault Value
typestring
inputsArray<NodeFunctionInput>
name?string
precision?string

Constructs a new node function.

MethodTypeModifiers