Capítulo 587 de 859
This class can project a given scene in 3D space into a 2D representation used for rendering with a 2D API. Projector is currently used by SVGRenderer and was previously used by the legacy CanvasRenderer.
import { Projector } from 'three/addons/renderers/Projector.js';
Constructor
| Signature |
|---|
new Projector() |
Methods
| Method | Description |
|---|---|
.projectScene( scene : Object3D, camera : Camera, sortObjects : boolean, sortElements : boolean ) : Object | Projects the given scene in 3D space into a 2D representation. The result is an object with renderable items. |