Capítulo 331 de 859

Chapter 331: TileShadowNodeHelper

Core Idea

Helper class to manage and display debug visuals for TileShadowNode.

Code Examples

import { TileShadowNodeHelper } from 'three/addons/tsl/shadows/TileShadowNodeHelper.js';
  • What it demonstrates: Typical usage of TileShadowNodeHelper.

Reference Tables

Constructor

Signature
new TileShadowNodeHelper( tileShadowNode : TileShadowNode )

Methods

MethodDescription
.dispose()Removes all debug objects (planes and helpers) from the scene.
.init()Initializes the debug displays (planes and camera helpers). Should be called after TileShadowNode has initialized its lights and shadow nodes.
.update()Updates the debug visuals (specifically camera helpers). Should be called within TileShadowNode's update method.

Key Takeaways

  1. TileShadowNodeHelper extends: EventDispatcher → Object3D → Group
  2. Key methods: dispose, init, update.

Connects To