โ† All examples

godot shaders

Swirling portal disc

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.

Recorded render of Swirling portal disc

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • demo.tscn
  • inspect_shader.py
  • material.tres
  • preview.png
  • swirl_portal.gdshader
  • test_package.py
  • verification/native.json

How it works

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/

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • contract_static
  • engine_run
  • engine_log_clean
  • shader_in_scene
  • capture_written
  • render_not_uniform
  • shader_changes_pixels

Limits to consider

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.