- Spark AR Studio
- Spark AR Hub
- Features
- Learn
- Creators
- Partners
- Blog
- Community
- Create AR effects for Instagram and Facebook.Get Started

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.

Name | Description |
---|---|

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

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

| Size of the shape on the left-right axis. |

| Size of the shape on the top-bottom axis. |

Name | Description |
---|---|

| The perspective projection matrix generated from the provided inputs. |

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