/unity-ray-marching

Ray marching sandbox

Primary LanguageC#MIT LicenseMIT

Unity Ray Marching - My Sandbox for Learning Ray Marching

by Ming-Lun "Allen" Chou / AllenChou.net / @TheAllenChou / Patreon

This project has been forked into MudBun, a volumetric VFX tool for Unity inspired by Clayxels.

Features

  • Smooth Boolean operations: union, subtraction, intersection.
  • Heat maps: number of ray steps & number of SDF evaluations.
  • Final rendered image entirely generated using compute shader.

Optimization Techniques

  • Bounding volume hierarchy (BVH) using dynamic AABB trees.
  • AABB query & ray query against AABB trees on GPU.

References & Resources