Capítulo 399 de 859

Chapter 399: ConstNode

Core Idea

Class for representing a constant value in the shader.

Key Concepts

  • isConstNode : boolean (readonly): This flag can be used for type testing.

Reference Tables

Constructor

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

Properties

PropertyDescription
.isConstNode : boolean (readonly)This flag can be used for type testing.

Methods

MethodDescription
.generateConst( builder : NodeBuilder ) : stringGenerates the shader string of the value with the current node builder.

Key Takeaways

  1. ConstNode extends: EventDispatcher → Node → InputNode
  2. Most relevant properties: isConstNode.
  3. Key methods: generateConst.

Connects To