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

Use this patch to project a 3D object in the shape of a truncated pyramid. The input parameters define a projection matrix where every point inside the truncated pyramid maps 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 truncated pyramid.

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

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

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

| Horizontal field of view, expressed in degrees. |

| Vertical field of view, expressed in degrees. |

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).