Capítulo 462 de 859
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 );
Constructor
| Signature |
|---|
new ReflectorNode( parameters : Object ) |
Properties
| Property | Description |
|---|---|
.reflector : ReflectorBaseNode | A reference to the internal reflector node. |
.target : Object3D | A reference to 3D object the reflector is linked to. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees internal resources. Should be called when the node is no longer in use. |
.getDepthNode() : Node | Returns a node representing the mirror's depth. That can be used to implement more advanced reflection effects like distance attenuation. |