Patch Editor
Utility Patches
Orthographic Projection Matrix Patch

Orthographic Projection Matrix Patch

Use this patch asset to project a 3D object in the shape of a rectangular cuboid. The input parameters define a projection matrix where every point inside the rectangular cuboid would be mapped in the range [0.0, 1.0] on every axis.

This type of matrix can be passed into a Shader Code Asset. When it is rendered it is typically used for defining the volume of an object in the shape of a 3D rectangular prism.

Inputs

NameDescription

Near

The distance of the near plane from the plane of projection.

Far

The distance of the far plane from the plane of projection.

Width

Size of the shape on the left-right axis.

Height

Size of the shape on the top-bottom axis.

Output

NameDescription

Projection Matrix

The perspective projection matrix generated from the provided inputs.

Example

The image below demonstrates the difference between perspective volume projection (left) and orthographic volume projection (right).

Was this article helpful?