Interface OrthographicBounds
interface OrthographicBounds {
bottom: number | null;
halfHeight: number;
left: number | null;
right: number | null;
top: number | null;
}
bottom: number | null;
halfHeight: number;
left: number | null;
right: number | null;
top: number | null;
}
Properties
bottom
bottom: number | null
Bottom clip plane, or null to derive -halfHeight.
half Height
halfHeight: number
Vertical half-extent of the view volume. Halving it doubles the zoom.
left
left: number | null
Left clip plane, or null to derive -halfHeight * aspectRatio.
right
right: number | null
Right clip plane, or null to derive halfHeight * aspectRatio.
top
top: number | null
Top clip plane, or null to derive halfHeight.
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
nullis derived fromhalfHeight: 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'sorthoLeft/orthoRight/orthoBottom/orthoTop); set it back tonullto return to the derived extent.