Home

Awesome

RTX Global Illumination in Unity

sponza_1

Introduction

This respository is RTXGI-DDGI implementation in Unity 2022.3.17f1c1 with URP14.0.9

It use Microsoft DirectX Raytracing to trace ray from each probe to scene geometry, grab irradiance and evaluate into texture

System Requirements

This renderer feature need DXR capable GPU, and you need to enable DirectX12 Graphics API on Windows in unity

Limitations

This is more like a demostration, we have some limitations here.

Warning

// Raw code
#ifdef DDGI_SHOW_INDIRECT_ONLY
    color.rgb           = indirectLighting;
#elif DDGI_SHOW_PURE_INDIRECT_RADIANCE
    color.rgb           = indirectRadiance;
#else
    color.rgb           += indirectLighting;
#endif

// Changed code (skip keywords)
color.rgb += indirectLighting;

Third Party

Reference