Baltor Get started

Gallery / Godot shaders

Shield impact ripple from a hit point

In your harnessGodot shaderMIT

Show an impact on a spherical shield: a flash at the hit direction and a ring that travels over the sphere along great circles and fades, looping on a timer or driven by a script.

Render of Shield impact ripple from a hit point
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, blend_add, cull_disabled, depth_draw_never, shadows_disabled
Parameters
shield_color (vec4 = 0.25, 0.6, 1, 1), impact_color (vec4 = 1, 0.85, 0.5, 1), hit_azimuth_degrees (float = 25), hit_elevation_degrees (float = 15), impact_progress (float = 0.35), loop_impacts (bool = yes), loop_period (float = 1.5), ring_width (float = 0.12) and 3 more
Use it on
A sphere centred on its origin. To aim at a world hit point, convert it to the object's local direction in a script and set the two angles.
Result
A faint blue bubble with a bright ring spreading out from the impact point.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/shield_hit_ripple/

Limits. One impact at a time; several simultaneous hits need several materials or an array uniform. Directions are taken from vertex positions, so the mesh must be roughly spherical around its origin. Additive, so it cannot darken.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 64.9 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
Great-circle distance from the angle between unit vectors, Expanding ring with energy fade, Facing ratio rim
Tags
godot shader, spatial, shield, impact, ripple, sci-fi, additive
Identity
library.supply.creative_originals.d400670575e81cdaad1ee662.d35a3f6d38a96a6a
Version
d35a3f6d38a96a6a0e8d8d205c8af1c736320b4050ca17aba18ac451d37aa5e5

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.