Capítulo 262 de 859

Chapter 262: ReflectorForSSRPass

Core Idea

A special version of Reflector for usage with SSRPass.

Code Examples

import { ReflectorForSSRPass } from 'three/addons/objects/ReflectorForSSRPass.js';
  • What it demonstrates: Typical usage of ReflectorForSSRPass.

Reference Tables

Constructor

Signature
new ReflectorForSSRPass( geometry : BufferGeometry, options : ReflectorForSSRPass~Options )

Methods

MethodDescription
.dispose()Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
.getRenderTarget() : WebGLRenderTargetReturns the reflector's internal render target.

Key Takeaways

  1. ReflectorForSSRPass extends: EventDispatcher → Object3D → Mesh
  2. Key methods: dispose, getRenderTarget.

Connects To