docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OcclusionTestMethods

    Extension methods for OcclusionTest.

    Inheritance
    object
    OcclusionTestMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.GPUDriven.Runtime.dll
    Syntax
    public static class OcclusionTestMethods

    Methods

    GetBatchLayerMask(OcclusionTest)

    Converts this occlusion test into a batch layer mask for rendering. This helper function is used to limit the second rendering pass when building occluders to only indirect draw calls, so that only false positives from the first rendering pass are rendered.

    Declaration
    public static uint GetBatchLayerMask(this OcclusionTest occlusionTest)
    Parameters
    Type Name Description
    OcclusionTest occlusionTest

    The occlusion test.

    Returns
    Type Description
    uint

    The batch layer mask that should be used to render the results of this occlusion test.

    In This Article
    Back to top
    Copyright © 2024 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)