docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)