Import
Projector is an addon, and must be imported explicitly, see Installation#Addons.
import { Projector } from 'three/addons/renderers/Projector.js';
Methods
.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.
| scene |
A scene or any other type of 3D object. |
| camera |
The camera. |
| sortObjects |
Whether to sort objects or not. |
| sortElements |
Whether to sort elements (faces, lines and sprites) or not. |
- Returns: The projected scene as renderable objects.