docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OverrideRayGenerationShader

    OverrideRayGenerationShader(RayTracingShader, Action<CommandBuffer>)

    Use to override the unity camera shader that generate the rays to sample the scene.

    Declaration
    public void OverrideRayGenerationShader(RayTracingShader shader, Action<CommandBuffer> prepareDispatchRaysCallback)
    Parameters
    Type Name Description
    RayTracingShader shader

    Shader to use when dispatching ray to render the simulation.

    Action<CommandBuffer> prepareDispatchRaysCallback

    Callback function to invoke just before dispatching rays.

    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)