jiaozi158 / UnitySSPathTracingURP

Screen Space Path Tracing for Unity's URP (Universal Render Pipeline). Using the full screen pass renderer feature in URP 14.
MIT License
111 stars 9 forks source link
path-tracing unity universal-render-pipeline urp

UnitySSPathTracingURP

Screen Space Path Tracing for Unity's URP (Universal Render Pipeline).

This shader is created in Shader Graph with the new URP 14 Full Screen Pass Renderer Feature.

This effect seems to be usable (stability, speed & noisiness) when I tested it on mobile device, so I decide to share it.

Please read the Documentation and Requirements before using this repository.

Screenshots

(BoxScene + Reflection Probe Fallback)

ProbeFallBackOn1

ProbeFallBackOn2

ProbeFallBackOn3

Offline Accumulation

Converged

Real-time Accumulation

Moving

Note: Enable URP Temporal Anti-aliasing is important for improving stability. (exists since latest URP 14)

(Not Included)

Original Cornell Box

OriginalCornellBox

Classroom by Christophe Seux (CC0)

Classroom

Stormtrooper Star Wars VII by ScottGraham (CC-BY-3.0)

StormTrooper

Refraction (Lit by emission)

Refraction

Documentation

Here.

Requirements

License

MIT MIT License

References

Three-Eyed-Games GPU-Ray-Tracing-in-Unity

Introduction to Path Tracing - Marc Sunet

Please see PathTracing.hlsl.