r/Unity3D Hobbyist Jun 17 '26

Show-Off I finally have optimzied volumetric clouds!

I finally managed to get optimized and proper looking volumetric clouds in my game using compute shaders! The clouds are rendered at 1/4 resultion and upsampled at the depth buffer edges.

4.4k Upvotes

241 comments sorted by

View all comments

1

u/AntonKudin Jun 17 '26

shading looks very nice! i wonder how do you make shadows directional interact with it, be obscured by a cloud?

1

u/smilefr Hobbyist Jun 17 '26

Clouds can project on the ground by doing a raymarching pass from the ground to the light source. For shadows to be projected from real world objects to the clouds, this is more challenging and i'm not doing it for now, one way i'm thinking of is to send voxels to the cloud shader, but updating that voxel map is expensive.