docs.unity3d.com
    Show / Hide Table of Contents

    Enum CustomPassInjectionPoint

    List all the injection points available for HDRP

    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    [GenerateHLSL(PackingRules.Exact, true, false, false, 1, false, false, false, -1, "/Users/robje/Library/Application Support/unity/editor/documentation/build/com.unity.render-pipelines.high-definition@13.1/Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/CustomPass/CustomPassInjectionPoint.cs")]
    public enum CustomPassInjectionPoint

    Fields

    Name Description Value
    AfterOpaqueDepthAndNormal

    At this point, you can modify the normal, roughness, and depth buffer. If you write to these buffers at this injection point, HDRP takes it into account in the lighting and the depth pyramid.

    AfterPostProcess

    This injection point is before HDRP renders post-processing and custom post-processing effects.

    BeforePostProcess

    This injection point is after HDRP handles post-processesing. At this point, depth is jittered which means you cannot draw depth tested GameObjects without having artifacts.

    BeforePreRefraction

    At this injection point, you can render any transparent GameObject that you want to see in refraction. If you write to buffers at this injection point, they contents end up in the color pyramid that HDRP uses for refraction when it draws transparent GameObjects.

    BeforeRendering

    Just after HDRP clears the depth buffer. You can write to the depth buffer to make HDRP not render depth-tested opaque GameObjects.

    BeforeTransparent

    At this injection point, you can sample the color pyramid that HDRP generates for rough transparent refraction.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023