Pjbomb2 / TrueTrace-Unity-Pathtracer

A High Performance Compute Shader Based Mesh Pathtracer in Unity3d without RT Cores
MIT License
705 stars 47 forks source link
bindless bvh compute-shader cwbvh denoising disney-bsdf global-illumination gpu hlsl nee oidn panorama path-tracing raytracing realtime refit restir-gi rtx unity unity3d

TrueTrace: A High Performance Compute Shader based Unity Pathtracer

A passion projects that has been going on for a while with the goal of bringing at least interactive path-tracing to everyone in unity, regardless of their hardware

Discord Server: https://discord.gg/4Yh7AZuhcD

Demo: https://drive.google.com/file/d/1sb_zRycX23AlC3QQ9LfqrtEZzBj47Z-Y/view?usp=sharing

Features:

MASSIVE thanks to Alex Bakanov(AKA Meetem) for bringing bindless textures to unity!
Ylitie et al
ebruneton
Convolutional Bloom

If you like what I do and want to support me or this project, Please consider becoming a Github Sponsor or a Patron at patreon.com/Pjbomb2! This allows me to keep this free for everyone!

You can contact me easiest through my discord server(above) or my twitter(https://x.com/Pjbomb2) with bugs, ideas, or thoughts on the project!

Adding new objects

Automatic methods


Manual method

General Use/Notes

Creating Panoramas

Using Instancing

Linking Shader Textures to TrueTrace

Functionality Settings Contents

Editor Window Guide

TrueTrace Options Description -

GlobalDefines.cginc Settings

IES System

Known Bugs:


Huge thanks to these people for being sponsors/patrons:

Sample Images(Taken from various stages of development)

Credits(will continue to expand when I have time)

Biggest thanks to Zuen(R.I.P. You will be missed) who helped me a huge amount with the new BVH and traversal, thanks to them I got to where I am now, and I am very thankful to them for their help and patience
https://github.com/jan-van-bergen

Scenes From:


Disney BSDF from: https://schuttejoe.github.io/post/disneybsdf/ Rectangle packer for faster atlas creation from here: https://github.com/ThomasMiz/RectpackSharp/tree/main/RectpackSharp GPU Texture Compression: https://github.com/aras-p/UnityGPUTexCompression OIDN Wrapper: https://github.com/guoxx/UnityDenoiserPlugin

This project uses: Crytek Sponza CC BY 3.0 © 2010 Frank Meinl, Crytek