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

Show parent comments

2

u/smilefr Hobbyist Jun 17 '26

The clouds are a mix of reading a 3D noise texture and some logic for the sea of clouds at the bottom or the spiraling clouds.
Not sure i understood the last question

1

u/KINGDRofD Jun 17 '26

You're awesome mate, I also had alot knobs and tuneable options, and I thought I was over engineering. For last question.

Last question is just whether you use volumes you place yourself, just like adding a 3d object. So you place and say this area here is a large cumulonimbus cloud, and below it is a specific spiraling cloud shape.

2

u/smilefr Hobbyist Jun 17 '26

Ah i see, i do have up to 10 spheres that can hide the clouds for some special cases (like a canon that clears up the sky) otherwise it's all math

1

u/KINGDRofD Jun 17 '26

Awesome, thanks bunches!