docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddInstanceToRAS

    AddInstanceToRAS(RayTracingAccelerationStructure, Renderer, HDEffectsParameters, ref bool, ref bool)

    Function that adds a renderer to a ray tracing acceleration structure.

    Declaration
    public static AccelerationStructureStatus AddInstanceToRAS(RayTracingAccelerationStructure targetRTAS, Renderer currentRenderer, HDEffectsParameters effectsParameters, ref bool transformDirty, ref bool materialsDirty)
    Parameters
    Type Name Description
    RayTracingAccelerationStructure targetRTAS

    Ray Tracing Acceleration structure the renderer should be added to.

    Renderer currentRenderer

    The renderer that should be added to the RTAS.

    HDEffectsParameters effectsParameters

    Structure defining the enabled ray tracing and path tracing effects for a camera.

    bool transformDirty

    Flag that indicates if the renderer's transform has changed.

    bool materialsDirty

    Flag that indicates if any of the renderer's materials have changed.

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