API

Interface OrthographicBounds

Live orthographic view-volume extents, in world units. Mutable and animatable: every setter invalidates the camera's projection cache, so assigning a field — by hand, from a render loop, or through a property animation targeting "ortho.halfHeight" — takes effect on the next frame.

A plane left null is derived from halfHeight: vertically as ±halfHeight, horizontally as ±halfHeight * aspectRatio, so the volume tracks the render target's aspect ratio and never squashes the image. Set a plane to a number for an off-center volume (Babylon's orthoLeft / orthoRight / orthoBottom / orthoTop); set it back to null to return to the derived extent.

interface OrthographicBounds {
    bottom: number | null;
    halfHeight: number;
    left: number | null;
    right: number | null;
    top: number | null;
}
Index
bottom: number | null

Bottom clip plane, or null to derive -halfHeight.

halfHeight: number

Vertical half-extent of the view volume. Halving it doubles the zoom.

left: number | null

Left clip plane, or null to derive -halfHeight * aspectRatio.

right: number | null

Right clip plane, or null to derive halfHeight * aspectRatio.

top: number | null

Top clip plane, or null to derive halfHeight.