Baltor Get started

Gallery / Godot shaders

Stained glass window from Voronoi cells

In your harnessGodot shaderMIT

Backlit stained glass: Voronoi cells filled with colours from a palette and slight glass mottling, separated by dark lead came lines, glowing as if lit from behind and slightly translucent.

Render of Stained glass window from Voronoi cells
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
spatial
Render modes
cull_disabled, depth_draw_always
Parameters
glass_a (vec4 = 0.75, 0.12, 0.15, 1), glass_b (vec4 = 0.12, 0.3, 0.75, 1), glass_c (vec4 = 0.95, 0.75, 0.15, 1), glass_d (vec4 = 0.15, 0.55, 0.25, 1), lead_color (vec4 = 0.06, 0.06, 0.07, 1), cell_scale (float = 6), lead_width (float = 0.07), backlight (float = 1.6) and 2 more
Use it on
A quad or window mesh with UVs spanning the window.
Result
A glowing window of irregular red, blue, gold and green panes framed by black lead.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/stained_glass_cells/

Limits. Panes are random cells, not a designed picture. The glow is emission, not light cast into the room; pair it with a light or a projected texture for coloured light on the floor. Transparency is not sorted per pixel.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 71.7 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
Voronoi panes with F2 - F1 lead lines, Palette selection by cell hash, Emission as backlight, Value noise with quintic interpolation and fractional Brownian motion
Tags
godot shader, spatial, stained glass, voronoi, window, church, emission
Identity
library.supply.creative_originals.7265fc0375c6946b1fe3a473.8f254a0c222f8d18
Version
8f254a0c222f8d18f6cb9880ccabd82f90ab635e778e250d1e5cb020ef2844ae

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.