Skip to content

UWAL / OrthographicCamera

Classes

OrthographicCamera

Camera manager class for scenes using orthographic projection.

See

Cameras / UV Mapping for reference.

Extends

Constructors

Constructor
ts
new OrthographicCamera(
   near?, 
   far?, 
   top?, 
   rendererRight?, 
   bottom?, 
   left?): OrthographicCamera;
Parameters
ParameterTypeDefault valueDescription
near?number1Distance to the near plane.
far?number1e3Distance to the far plane.
top?number0Distance to the top plane.
rendererRight?number | RenderStageinnerWidthDistance to the right plane or a Renderer instance.
bottom?numberinnerHeightDistance to the bottom plane, optional when called with a Renderer instance.
left?number0Distance to the left plane.
Returns

OrthographicCamera

Overrides

Camera3D.constructor

Methods

UpdateProjectionMatrix()
ts
UpdateProjectionMatrix(): void;

Compute the orthographic projection and write the result into the corresponding uniform buffer if present.

Returns

void

Overrides

Camera3D.UpdateProjectionMatrix

Accessors

Top
Get Signature
ts
get Top(): number;
Returns

number

Distance to the top plane of the frustum.

Set Signature
ts
set Top(top): void;
Parameters
ParameterTypeDescription
topnumberDistance to the top plane.
Returns

void

Get Signature
ts
get Right(): number;
Returns

number

Distance to the right plane of the frustum.

Set Signature
ts
set Right(right): void;
Parameters
ParameterTypeDescription
rightnumberDistance to the right plane.
Returns

void

Bottom
Get Signature
ts
get Bottom(): number;
Returns

number

Distance to the bottom plane of the frustum.

Set Signature
ts
set Bottom(bottom): void;
Parameters
ParameterTypeDescription
bottomnumberDistance to the bottom plane.
Returns

void

Left
Get Signature
ts
get Left(): number;
Returns

number

Distance to the left plane of the frustum.

Set Signature
ts
set Left(left): void;
Parameters
ParameterTypeDescription
leftnumberDistance to the left plane.
Returns

void

Released under the MIT License.