Reader small image

You're reading from  Become a Unity Shaders Guru

Product typeBook
Published inJul 2023
Reading LevelN/a
PublisherPackt
ISBN-139781837636747
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Mina Pêcheux
Mina Pêcheux
author image
Mina Pêcheux

Mina Pêcheux is a freelance content creator who has been passionate about game development since an early age. She is a graduate of the French Polytech School of Engineering in applied mathematics and computer science. After a couple of years of working as a data scientist and web developer in startups, she turned to freelancing and online instructional content creation to reconnect with what brightens her days: learning new things everyday, sharing with others and creating multi-field projects mixing science, technology, and art.
Read more about Mina Pêcheux

Right arrow

Studying a common use case – the rendering of volumetric clouds

So far, we have seen how ray marching allows us to create arbitrarily complex shapes based on SDFs and 3D surfaces. This makes it easy to create procedural scenes with solid shapes, like the ones shown in Figure 8.12.

But ray marching can also be taken one step further, to actually render 3D volumes. For example, thanks to this technique, we can create fairly realistic clouds like these ones:

Figure 8.13 – Volumetric clouds rendered on the scene skybox using ray marching

Figure 8.13 – Volumetric clouds rendered on the scene skybox using ray marching

So, our goal here will be to create a material shader for the skybox of the scene, to have it display volumetric clouds similar to the ones shown in Figure 8.13.

In the following sections, we are going to implement our shader step by step and discuss how we can adapt our ray marching principles to the case of volume rendering. Then, we will see how we can use mathematical noise to create interesting shapes...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Become a Unity Shaders Guru
Published in: Jul 2023Publisher: PacktISBN-13: 9781837636747

Author (1)

author image
Mina Pêcheux

Mina Pêcheux is a freelance content creator who has been passionate about game development since an early age. She is a graduate of the French Polytech School of Engineering in applied mathematics and computer science. After a couple of years of working as a data scientist and web developer in startups, she turned to freelancing and online instructional content creation to reconnect with what brightens her days: learning new things everyday, sharing with others and creating multi-field projects mixing science, technology, and art.
Read more about Mina Pêcheux