Baltor Get started

Gallery / Godot shaders

Swirling portal disc

In your harnessGodot shaderMIT

Unlit portal surface: spiral arms twist toward the centre in polar coordinates, a bright rim ring and a dark core frame it, noise sparkles drift inward, and everything outside the disc is transparent.

Render of Swirling portal disc
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
spatial
Render modes
unshaded, cull_disabled, depth_draw_opaque, shadows_disabled
Parameters
outer_color (vec4 = 0.45, 0.15, 0.95, 1), inner_color (vec4 = 0.2, 0.9, 1, 1), core_color (vec4 = 0.02, 0, 0.05, 1), rim_color (vec4 = 1, 0.85, 1, 1), arms (int = 4), twist (float = 6), spin_speed (float = 2), core_radius (float = 0.12) and 3 more
Use it on
A quad or disc with UVs spanning 0 to 1; the portal fills the inscribed circle.
Result
A spinning purple and cyan spiral disc with a dark centre and a bright outer ring.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/swirl_portal/

Limits. Flat effect on a card; it has no depth or parallax. The polar angle has a seam where atan wraps, hidden by whole numbers of arms but visible with sparkles at high zoom. Unshaded, so it ignores scene light.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 73.8 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
Polar coordinate spiral (angle plus twist over radius), Thresholded value noise sparkles, MurmurHash3 32-bit finalizer over prime-combined lattice coordinates as a hash
Tags
godot shader, spatial, portal, vortex, polar coordinates, magic, sci-fi
Identity
library.supply.creative_originals.9751df0060b0483e977f639f.90ef7b68333e2243
Version
90ef7b68333e2243635f63e2f0f69d6024b740f55584b752dd9f83871c48fc6a

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.