docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Ray tracing with the UnifiedRayTracing API

    The UnifiedRayTracing API enables you to write ray tracing code that can execute on a wide range of GPUs. It leverages hardware ray tracing acceleration on supported GPUs, while providing a compute shader-based software fallback for those that do not.

    Section Description
    Get started with ray tracing Learn the essential information about the API.
    Ray tracing workflow Create a ray tracing context, and create and execute a ray tracing shader.
    Create the ray tracing context How to create the API entry point.
    Create an acceleration structure Create and initialize an acceleration structure describing your geometry.
    Create a unified ray tracing shader Create a unified ray tracing shader file.
    Write your shader code Write the ray tracing logic in your a unified ray tracing shader file.
    Execute your ray tracing code How to execute your ray tracing shader.
    Sample code Complete code example showcasing tracing rays from the scene's camera.
    Unified ray tracing shader code reference API reference for the unified ray tracing shader code.
    In This Article
    Back to top
    Copyright © 2025 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)