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
| Parameter | Type | Default value | Description |
|---|---|---|---|
near? | number | 1 | Distance to the near plane. |
far? | number | 1e3 | Distance to the far plane. |
top? | number | 0 | Distance to the top plane. |
rendererRight? | number | RenderStage | innerWidth | Distance to the right plane or a Renderer instance. |
bottom? | number | innerHeight | Distance to the bottom plane, optional when called with a Renderer instance. |
left? | number | 0 | Distance to the left plane. |
Returns
Overrides
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
| Parameter | Type | Description |
|---|---|---|
top | number | Distance to the top plane. |
Returns
void
Right
Get Signature
ts
get Right(): number;Returns
number
Distance to the right plane of the frustum.
Set Signature
ts
set Right(right): void;Parameters
| Parameter | Type | Description |
|---|---|---|
right | number | Distance 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
| Parameter | Type | Description |
|---|---|---|
bottom | number | Distance 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
| Parameter | Type | Description |
|---|---|---|
left | number | Distance to the left plane. |
Returns
void