Switch a camera to an orthographic projection, and return its live ortho bounds.
Depth still comes from camera.nearPlane / camera.farPlane; camera.fov has no
effect in this mode — an orthographic camera zooms by changing halfHeight.
The returned object is also reachable as camera.ortho, and stays mutable (see
OrthographicBounds), so this only needs to be called once per camera. Calling it
again replaces the bounds with a fresh object.
Switch a camera to an orthographic projection, and return its live
orthobounds.Depth still comes from
camera.nearPlane/camera.farPlane;camera.fovhas no effect in this mode — an orthographic camera zooms by changinghalfHeight.The returned object is also reachable as
camera.ortho, and stays mutable (seeOrthographicBounds), so this only needs to be called once per camera. Calling it again replaces the bounds with a fresh object.