DepthCameraHandler
Source: DepthCameraHandler.ts:22
Renderer depth cameras. A camera index in the list is its slot in the planet quad tree strategies. The cameras are bound to the first planet the renderer has when it starts. A planet added later is not picked up: give it to DepthCamera as the planet option, though the footprints still show on the start planet only. A removed planet is not released.
- TODO:
- Several planets: keep the footprint and frustum collections per planet, in the planet a camera is bound to. Now they live in the start planet, so the footprint of a camera bound to another planet lands on the start planet ellipsoid.
Constructor
new DepthCameraHandler(renderer): DepthCameraHandlerInstance Methods
prepareFrame()
Puts the cameras in place, before the planets collect their nodes.
frame()
Renders the depth frames, after the planets have collected the nodes and before the scenes are drawn.
Instance Fields
initialized
True after the renderer has initialized the handler: an added camera is initialized at once.
planet
First planet of the renderer at its start, the default one to bind the cameras to.