Awesome
unity-tinybvh
An example implementation for tinybvh in Unity and a foundation for building compute based raytracing solutions.
Features
-
TinyBVH Integration
Leverages tinybvh for efficient BVH and Compact Wide BVH (CWBVH) construction, using a C++ plugin. -
GPU Mesh Aggregation
Packs scene meshes into a unified aggregate vertex buffer and triangle attribute buffer via compute shader. -
Asynchronous BVH Construction
Uses async readback to transfer mesh data from GPU to CPU, and runs BVH construction in a thread. -
Wavefront Path Tracer
A basic compute based raytracer structured like a wavefront path tracer. Includes multiple display mode examples:- ndotl
- BVH Steps
- Ray Distance
- Normals
- Barycentrics
- UVs
Future Plans
- Further optimization
- TLAS/BLAS
- Moving objects
- Skinned Mesh Renderer support