File: Object3DNode.md | Updated: 11/15/2025
This node can be used to access transformation related metrics of 3D objects. Depending on the selected scope, a different metric is represented as a uniform in the shader. The following scopes are supported:
POSITION: The object's position in world space.VIEW_POSITION: The object's position in view/camera space.DIRECTION: The object's direction in world space.SCALE: The object's scale in world space.WORLD_MATRIX: The object's matrix in world space.Constructs a new object 3D node.
scope | The node represents a different type of transformation depending on the scope.
---|---
object3d | The 3D object. Default is null.
The 3D object.
Default is null.
The node reports a different type of transformation depending on the scope.
Holds the value of the node as a uniform.
Overwritten since this type of node is updated per object.
Default is 'object'.
Overrides: Node#updateType
Generates the code snippet of the uniform node. The node type of the uniform node also depends on the selected scope.
builder | The current node builder.
---|---
Overrides: Node#generate
Returns: The generated code snippet.
Overwritten since the node type is inferred from the scope.
Overrides: Node#getNodeType
Returns: The node type.
Updates the uniform value depending on the scope.
frame | The current node frame.
---|---
Overrides: Node#update