File: ReflectorNode.md | Updated: 11/15/2025
This node can be used to implement mirror-like flat reflective surfaces.
const groundReflector = reflector();
material.colorNode = groundReflector;
const plane = new Mesh( geometry, material );
plane.add( groundReflector.target );
Constructs a new reflector node.
parameters | An object holding configuration parameters. Default is {}. | target | The 3D object the reflector is linked to. Default is new Object3D().
---|---
resolutionScale | The resolution scale. Default is 1.
generateMipmaps | Whether mipmaps should be generated or not. Default is false.
bounces | Whether reflectors can render other reflector nodes or not. Default is true.
depth | Whether depth data should be generated or not. Default is false.
samples | Anti-Aliasing samples of the internal render-target.
defaultTexture | The default texture node.
reflector | The reflector base node.
A reference to the internal reflector node.
A reference to 3D object the reflector is linked to.
Frees internal resources. Should be called when the node is no longer in use.
Overrides: TextureNode#dispose
Returns a node representing the mirror's depth. That can be used to implement more advanced reflection effects like distance attenuation.
Returns: The depth node.