Alpha Clipping | High Definition RP | 10.0.0-preview.27
docs.unity3d.com
    Show / Hide Table of Contents

    Alpha Clipping

    The Alpha Clipping option controls whether your Material acts as a Cutout Shader or not.

    Enable Alpha Clipping to create a transparent effect with hard edges between the opaque and transparent areas. HDRP achieves this effect by not rendering pixels with alpha values below the value you specify in the Threshold field. For example, a Threshold of 0.1 means that HDRP doesn't render alpha values below 0.1.

    If you enable this feature, HDRP exposes the following properties for you to use to customize the Alpha Cutoff effect:

    Property Description
    Threshold Set the alpha value limit that HDRP uses to determine whether it should render each pixel. If the alpha value of the pixel is equal to or higher than the limit then HDRP renders the pixel. If the value is lower than the limit then HDRP does not render the pixel. The default value is 0.5.
    Use Shadow Threshold Enable the checkbox to set another threshold value for alpha clipping shadows.
    - Shadow Threshold Set the alpha value limit that HDRP uses to determine whether it should render shadows for a pixel.
    Alpha to Mask Enable the checkbox to turn on alpha-to-coverage. When MSAA is used, alpha-to-coverage modifies multisample coverage mask proportionally to the pixel Shader result alpha value. This is typically used for anti-aliasing vegetation and other alpha-tested shaders.

    If you set your Surface Type to Transparent, HDRP exposes the Transparent Depth Prepass and Transparent Depth Postpass properties. HDRP allows you to set individual thresholds for these two passes.

    Property Description
    Prepass Threshold Use the slider to set the alpha value limit that HDRP uses for the Transparent depth prepass. This works in the same way as the main Threshold property described above.
    This property only appears when you enable the Transparent Depth Prepass checkbox.
    Postpass Threshold Use the slider to set the alpha value limit that HDRP uses for the transparent depth postpass. This works in the same way as the main Threshold property described above.
    This property only appears when you enable the Transparent Depth Postpass checkbox.
    Back to top
    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