Skip to content

nathanjf/Godot-Collision-Object-Mouseover-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collision Object Mouseover System

A Godot plugin for highlighting CollisionObjects on mouseover.

Demo Image

Credits

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.

Installation

To install COMS:

  1. Download the latest ZIP Archive from relases.

  2. Extract the 'addons/' folder to your Godot project.

  3. Enable the plugin in your Godot Project settings

Use

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.

Features

Curent

  • Highlight objects on mouseover
  • Per object color

Planned

  • Optional depth pass to obscure highlights partially behind objects

About

A Godot plugin that highlights CollisionObjects on mouseover

Resources

License

Stars

Watchers

Forks

Packages

No packages published