A Godot plugin for highlighting CollisionObjects on mouseover.
I based the idea for this plugin off the work by Magodra in their GlowBorderEffect addon, but I needed the ability to support skinned meshes and wanted to optimize the shaders a bit more so I implemented my own version.
To install COMS:
-
Download the latest ZIP Archive from relases.
-
Extract the 'addons/' folder to your Godot project.
-
Enable the plugin in your Godot Project settings
COMS adds two new nodes to Godot: The HighlightObject and the HighlightRenderer. The HighlightObject node will add and remove CollisionObjects from a specified render layer whenever they are moused over. The HighlightRenderer contains a post processing pipeline that creates a highlight around objects on that same renderlayer and composites the outline ontop of the unmodified scene.
COMS works out of the box with just the proper configuration of the export variables. That being said the export variables must be set properly for it to work.
Check out the included demo project for an example of the plugin in action.
- Highlight objects on mouseover
- Per object color
- Optional depth pass to obscure highlights partially behind objects