Enum CustomTransformMatrixType
Custom transform matrix type. Defines how to handle the transform matrix to be passed to the shader.
Namespace: Unity.XR.CompositionLayers.Layers
Assembly: Unity.XR.CompositionLayers.dll
Syntax
public enum CustomTransformMatrixType
Fields
Name | Description |
---|---|
Model | Matrix is treated as Model matrix. Used for normal transforms. This is treated as equivalent as compositionLayer.transform.localToWorldMatrix or UNITY_MATRIX_M. |
ModelView | Matrix is treated as ModelView matrix. Used to bypass view matrix or pass a special view matrix. This is treated as equivalent as mainCamera.transform.localToWorldMatirx * compositionLayer.transform.localToWorldMatrix or UNITY_MATRIX_MV. |