Skip to content

Add volumetric clouds based on clayjohn example#8

Open
TheRealKaamy wants to merge 10 commits into
j-c7:mainfrom
TheRealKaamy:volumetric-cloud
Open

Add volumetric clouds based on clayjohn example#8
TheRealKaamy wants to merge 10 commits into
j-c7:mainfrom
TheRealKaamy:volumetric-cloud

Conversation

@TheRealKaamy

Copy link
Copy Markdown

I wanted to use this addon in a little game project of mine but noticed volumetric clouds had not been implemented yet (#4). so I figured I'd give it a shot.
it's mostly Copypasta from the original Clay John's example.
universal sky glue code is mostly in univsky_volumetric_clouds.gdshaderinc which samples the clouds texture and univsky_standard_sky.gdshader blends the result into the sky.
I also added a VolumetricClouds resource and an example scene to play around with
I updated the readme, added more screenshots.
there's still some work to be done. the same intensity doesn't look good at every time of day. around 4.0 looks great at night like in the screenshot (in my biased opinion), but looks pretty bad aroundd sunrise and sunset. for now it needs to be adjusted dynamically based on the time of day to get the best looking results.
for now though, it does what I need for my game. I might add more features to the addon as development continues. and if i do, I'll send another PR.

+ blend into universal sky on univsky_standard_sky.gdshader if enabled
referencing freed Texture2DRD objects
- Disabling stops updates and releases the compute textures
- Removing the resource clears its shader texture bindings before
  freeing them.
- now dynamic Clouds works normally when the volumetric resource is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant