Capítulo 463 de 859

Chapter 463: RendererReferenceNode

Core Idea

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.

Key Concepts

  • renderer : Renderer: The renderer the property belongs to. When no renderer is set, the node refers to the renderer of the current state.

Code Examples

const exposureNode = rendererReference( 'toneMappingExposure', 'float', renderer );
  • What it demonstrates: Typical usage of RendererReferenceNode.

Reference Tables

Constructor

Signature
new RendererReferenceNode( property : string, inputType : string, renderer : Renderer )

Properties

PropertyDescription
.renderer : RendererThe renderer the property belongs to. When no renderer is set, the node refers to the renderer of the current state.

Methods

MethodDescription
`.updateReference( state : NodeFrameNodeBuilder ) : Object`

Key Takeaways

  1. RendererReferenceNode extends: EventDispatcher → Node → ReferenceBaseNode
  2. Most relevant properties: renderer.
  3. Key methods: updateReference.

Connects To