Energy Shield
Energy Shield
This addon for Godot (4.5+) 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.
Find it on: Github
License
MIT - so free to use!
Changes
- 1.1.1: Scaling behaviour reworked, can now optionally scale impacts and ripples relative with the object or not, and fix generation/collapse when scaling the object
- 1.0.1: Web build compatibility
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.
Download
Click download now to get access to the following files:
Development log
- v1.1.142 days ago


Leave a comment
Log in with itch.io to leave a comment.