Class CoreMatrixUtils
Set of utility functions for the Core Scriptable Render Pipeline Library related to Matrix operations
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class CoreMatrixUtils
Methods
Name | Description |
---|---|
MatrixTimesTranslation(ref Matrix4x4, Vector3) | This function provides the equivalent of multiplying matrix parameter inOutMatrix with a translation matrix defined by the parameter translation. The order of the equivalent multiplication is inOutMatrix * translation. |
MultiplyOrthoMatrix(Matrix4x4, Matrix4x4, bool) | Multiplies a matrix with an orthographic matrix. This function is faster than performing the full matrix multiplication. The operation order is ortho * rhs. |
MultiplyPerspectiveMatrix(Matrix4x4, Matrix4x4) | Multiplies a matrix with a perspective matrix. This function is faster than performing the full matrix multiplication. The operation order is perspective * rhs. |
MultiplyProjectionMatrix(Matrix4x4, Matrix4x4, bool) | Multiplies a matrix with a projection matrix. This function is faster than performing the full matrix multiplication. The operation order is projMatrix * rhs. |
TranslationTimesMatrix(ref Matrix4x4, Vector3) | This function provides the equivalent of multiplying a translation matrix defined by the parameter translation with the matrix specified by the parameter inOutMatrix. The order of the equivalent multiplication is translation * inOutMatrix. |