This is the first part of a Unity tutorial dedicated to Volumetric Rendering, raymarching and signed distance fields. These techniques allow us to overcome the biggest limitation of modern 3D engines, which only let us render the outer shell of an object. Volumetric rendering enables the creation of realistic materials that interact with light in a complex way, such as fog, smoke, water and glass. Beautifully crafted effects such as NMZ‘s Plasma Globe (below) would simply be impossible without volumetric rendering.
These techniques are not complicated, but require a lot of steps in order to replicate the aforementioned effects. This tutorial has got you covered.
- Part 1: Volumetric Rendering | An introduction to what rendering volume means, and how it can be done in Unity;
- Part 2: Raymarching | Focuses on the implementation of distance-aided raymarching, the de-fact standard technique to render volumes;
- Part 3: Surface Shading | A comprehensive guide on how to shade volumes realistically;
- Part 4: Signed Distance Functions | An in-depth discussion of the mathematical tools that allow us to generate and combine arbitrary volumes;
- Part 5: Ambient Occlusion | How to implement realistic and efficient ambient occlusion in your volumes;
- 🚧 Part 6: Hard and Soft Shadows | How to add real shadows to your volumes;
This first part will provide a general introduction to volumetric rendering, and end with a simple shader that will be the base of all our future iterations:
- Part 1. Volumetric Rendering
- Part 2. Volumetric Raycasting
- Part 3. Volumetric Raymarching with Constant Step
The full Unity package is available at the end of this article. 📦Continue reading