Skip to content

Implementation of volumetric clouds#104

Draft
rpgshooter wants to merge 1 commit intoTokisanGames:devfrom
rpgshooter:volumetric-clouds
Draft

Implementation of volumetric clouds#104
rpgshooter wants to merge 1 commit intoTokisanGames:devfrom
rpgshooter:volumetric-clouds

Conversation

@rpgshooter
Copy link
Copy Markdown

@rpgshooter rpgshooter commented Jan 11, 2026

Volumetric Clouds

Adds ray-marched volumetric clouds to Sky3D as a separate spatial shader, following the same pattern as AtmFog.
Features

Ray-marched cloud rendering on screen quad
Procedural value noise FBM for cloud shapes
Height gradient profiles (stratus, stratocumulus, cumulus, cumulonimbus)
Beer-Lambert light extinction with self-shadowing
Day/sunset/night color transitions
Wind animation synced with existing cloud system
Integrates with existing sun light color and cumulus night color
MSAA implementation for better look with MSAA being used

Files

Added: shaders/VolumetricClouds.gdshader
Modified: src/SkyDome.gd

Exposed Parameters

Layer geometry (cloud bottom/top)
Coverage, cloud type, density
Absorption
Base noise scale
March steps, shadow steps

Known Limitations

Procedural noise can cause shimmer at low step counts
Performance scales with march_steps (default 64)

@rpgshooter rpgshooter changed the title Initial implementation of volumetric clouds Implementation of volumetric clouds Jan 11, 2026
@rpgshooter rpgshooter marked this pull request as ready for review January 11, 2026 22:40
@rpgshooter rpgshooter marked this pull request as draft January 11, 2026 22:40
@rpgshooter rpgshooter force-pushed the volumetric-clouds branch 7 times, most recently from 61f36fd to cccbffc Compare January 12, 2026 19:04
@rpgshooter rpgshooter marked this pull request as ready for review January 13, 2026 18:17
@rpgshooter rpgshooter marked this pull request as draft January 14, 2026 16:45
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