Skip to content

OrthographicCamera

new OrthographicCamera({ left?, right?, top?, bottom?, near?, far?, tileSize? })

THREE equivalent: THREE.OrthographicCamera

Orthographic projection camera. Produces unit W, so affine UV mapping is exact - no visible RuneTek 3 warping.

Differs from THREE.js

Constructor takes a single options object. tileSize has no THREE equivalent.

Name Type Description
left number Left frustum boundary. Default -1.
right number Right frustum boundary. Default 1.
top number Top frustum boundary. Default 1.
bottom number Bottom frustum boundary. Default -1.
near number Near clipping plane. Default 0.1.
far number Far clipping plane. Default 2000.
tileSize number World units per tile, used for painter-sort distance and fog culling.
projectionMatrix Matrix4 Current projection matrix.
matrixWorldInverse Matrix4 Inverse of the world matrix, updated each frame.
Method Description
updateProjectionMatrix(): void Rebuilds projectionMatrix from the frustum boundaries. Call after changing left/right/top/bottom/near/far.