Lexpartizan/Godot_sky_shader

Feature Request: cloud shadows

Opened this issue · 3 comments

Maybe implementing them like the light cookies as used in Unity

Only decal implementation found:
Screen-Space-Decals: https://github.com/Mr-Slurpy/Screen-Space-Decals

In-Engine support for decals might come with Godot 4...

The shadows probably won't have to be 100% accurate, because that's difficult to tell, but they should match with the cloud coverage

Cloud coverage is now stored in a texture, so there is a base for work.
But this is working with light, so I have no idea how to project a shadow.
In real life, we don't see shadows from specific clouds.
It could be a little easier to reduce the light when the center of the Sun is behind the clouds, but I don't know how to do it yet either, becouse i change light with script, no shader.

Hm... I believe you can make out the shadow in real life, if the sun is at its zenith or close to it... ie. the sun is shining really strong onto the Earth surface. I'll do some research in the following days

Yes, this happens, but very rarely, in General, the overall illumination changes.