Interactive Energy Shield

by nojoule

15

Energy Shield

This addon for Godot provides an energy shield that can be easily integrated into your scenes. You can use either the shield_plane.tscn or shield_sphere.tscn directly, or apply the shader to other materials. Note that some adjustments may be needed to ensure proper functionality on meshes other than planes and spheres.

Updates

  • Release 1.0
  • create Youtube explaining the Shader https://youtu.be/0YiZSrtxtcg
  • Dynamic number of Impacts
  • Asset for Unity
  • Support more types of meshes (e.g. Cube)
  • Add refraction effect
  • Add chromatic aberration effect

sphere and plane energy shield, with the sphere showing an impact reaction sphere and plane energy shield, each showing a wave

Interactable

You can use the shield.gd script to add mouse click interactions or modify it to suit your specific needs. The following interactions are available:

Impact:
Impacts can be dynamically added, with up to five active at a time, by adjusting the shader’s uniform variables. Each impact generates a wave that propagates across the shield from a specified position. The wave’s intensity and speed can be customized to your preference.

Generate/Collapse:
The energy shield can be animated to collapse or regenerate from specified positions. Both the animation and the highlight effects are fully adjustable.

Intersection Highlight:
Leveraging the depth texture, the material detects and highlights nearby objects or intersections with other objects.

Customizations

You can customize parameters such as color, wave height, frequency, and color quantization to match your game’s style. All shader parameters are thoroughly documented — refer to the example scene for demonstrations.

Support me

ko-fi

Follow me on Twitch for some live-coding or check out my Youtube for content around game dev.

Version

1.0

Engine

4.3

Category

Shaders

Download

Version1.0
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author