Baltor Get started

Gallery / Godot shaders

Drifting snowfall overlay

In your harnessGodot shaderMIT

Overlay falling snow: flakes in three depth layers fall at different speeds, sway sideways on sine paths, vary in size and soften with distance, drawn on a transparent rectangle over the scene.

Render of Drifting snowfall overlay
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
canvas_item
Parameters
snow_color (vec4 = 1, 1, 1, 0.9), density (float = 0.55), fall_speed (float = 0.15), sway (float = 0.35), wind (float = 0.1), flake_scale (float = 14), aspect (float = 1)
Use it on
A ColorRect above the scene covering the area that should show snow.
Result
A city scene behind white snowflakes of three sizes drifting down.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/snow_flakes_2d/

Limits. Flakes are soft discs, not crystal shapes. Each flake is confined to its cell, so very large sway values clip at cell borders.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 77.6 KB
Licence
MIT
Declared effects
reads files, runs commands
Checked with
Godot 4.7.2, opengl3 compatibility (Mesa llvmpipe, Xvfb)
Checks
contract static, engine run, engine log clean, shader in scene, capture written, render not uniform, shader changes pixels
Techniques
Scrolling hashed cells with per-flake sway, Layered depth, MurmurHash3 32-bit finalizer over prime-combined lattice coordinates as a hash
Tags
godot shader, canvas item, snow, weather, overlay, winter, procedural
Identity
library.supply.creative_originals.b2cf6da00d7b6c2f3c28ef4c.b522c4d0bff417eb
Version
b522c4d0bff417ebacbfb5f05b277db158b449036d60c0992fb60e3358cb807c

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.