Baltor Get started

Gallery / Godot shaders

Particle water fountain with swirl and floor bounce

In your harnessGodot shaderMIT

GPU particle process shader for a fountain: droplets leave a nozzle disc in a cone, swirl around the axis, fall under gravity, bounce once on a floor height and fade from water to spray colour.

Render of Particle water fountain with swirl and floor bounce
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
particles
Parameters
launch_speed (float = 5.5), spread_degrees (float = 9), nozzle_radius (float = 0.06), swirl_speed (float = 0.8), gravity (float = 9.8), floor_height (float = 0), bounce (float = 0.3), droplet_scale (float = 1) and 2 more
Use it on
A GPUParticles3D node with a draw pass mesh (for example a small QuadMesh) whose material uses vertex colour as albedo and particle billboarding, as in demo.tscn.
Result
An arcing jet of droplets that rises, falls, bounces on the floor height and fades into spray.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/particles_fountain/

Limits. The floor is an infinite horizontal plane; there is no collision with scene geometry (use Godot's particle collision nodes for that). Each droplet bounces with the same rule, so repeated bounces lose energy quickly. Positions are in world space (local_coords off), so moving the emitter leaves droplets behind as real water would.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 78.5 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
Integer hash for per-particle random numbers, Uniform sampling of a cone and a disc, Explicit Euler integration with velocity reflection at a plane
Tags
godot shader, particles, fountain, water, gravity, bounce
Identity
library.supply.creative_originals.9b154abed4c5f3866f90d4dc.57bc07eafaf577a4
Version
57bc07eafaf577a420eee6fb5774fa8f709de1146245cdca75299860c8aff039

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.