Capítulo 423 de 859

Chapter 423: InputNode

Core Idea

Base class for representing data input nodes.

Key Concepts

  • isInputNode : boolean (readonly): This flag can be used for type testing.
  • precision : 'low' | 'medium' | 'high': The precision of the value in the shader.
  • value : any: The value of this node. This can be any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors).

Reference Tables

Constructor

Signature
new InputNode( value : any, nodeType : string )

Properties

PropertyDescription
.isInputNode : boolean (readonly)This flag can be used for type testing.
`.precision : 'low''medium'
.value : anyThe value of this node. This can be any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors).

Methods

MethodDescription
.getInputType( builder : NodeBuilder ) : stringReturns the input type of the node which is by default the node type. Derived modules might overwrite this method and use a fixed type or compute one analytically.
`.setPrecision( precision : 'low''medium'

Key Takeaways

  1. InputNode extends: EventDispatcher → Node
  2. Most relevant properties: isInputNode, precision, value.
  3. Key methods: getInputType, setPrecision.

Connects To