โ† All examples

godot shaders

Radar display with sweep and fading blips

Unlit radar screen for a disc or quad: range rings and spokes, a rotating sweep with a phosphor trail, and blips at hashed positions that flare when the sweep passes and then fade.

Recorded render of Radar display with sweep and fading blips

What this component contains

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

How it works

Shader type
spatial
Render modes
unshaded, cull_disabled
Parameters
screen_color (vec4 = 0, 0.06, 0.03, 1), phosphor_color (vec4 = 0.25, 1, 0.45, 1), sweep_speed (float = 1.2), trail_angle (float = 1.8), range_rings (int = 4), spokes (int = 8), line_width (float = 0.006), blip_density (float = 0.12) and 2 more
Use it on
A quad or disc with UVs spanning 0 to 1. Replace the hashed blips with uniforms or a texture for real contacts.
Result
A dark green radar screen with rings and spokes, a bright rotating sweep and blips that light up as it passes.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/radar_sweep_disc/

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

Blips are decorative hash positions, not data. Thin lines alias when the display is small on screen. Unlit, so it ignores scene lighting.