Inheritance: EventDispatcher → Node → ReferenceBaseNode →
This node is a special type of reference node which is intended for linking renderer properties with node values.
When changing renderer.toneMappingExposure, the node value of exposureNode will automatically be updated.
const exposureNode = rendererReference( 'toneMappingExposure', 'float', renderer );
Constructs a new renderer reference node.
property
The name of the property the node refers to.
inputType
The uniform type that should be used to represent the property value.
renderer
The renderer the property belongs to. When no renderer is set, the node refers to the renderer of the current state.
Default is null.
The renderer the property belongs to. When no renderer is set, the node refers to the renderer of the current state.
Default is null.
Updates the reference based on the given state. The state is only evaluated RendererReferenceNode#renderer is not set.
state
The current state.
Overrides: ReferenceBaseNode#updateReference
Returns: The updated reference.