cloudiful-bevy-outline
Small reusable Bevy outline helper crate for geometry-shell outlines.
What it provides
GpmoOutlinePlugin: initializes default outline assetsOutlineStyle: configurable color, emissive strength, and shell scaleOutlineAssets: default cached material/style resourceOutlineShell: marker component for spawned outline meshesspawn_outline_mesh(...): attach an outline mesh with a custom material/stylespawn_default_outline_mesh(...): attach an outline mesh using the plugin's default style
What it does not provide
- screen-space outlines
- stencil-based outline passes
- automatic mesh duplication for arbitrary scenes
This crate intentionally stays simple: it supports the common "draw a slightly enlarged backface-only shell" outline technique.
Usage
Add the plugin:
use *;
use GpmoOutlinePlugin;
new.add_plugins;
Spawn an outline child:
use *;
use ;
Then toggle the outline child's Visibility.
Technique
This crate uses a geometry-shell outline:
- draw the normal mesh
- draw a second mesh with front-face culling
- scale that second mesh slightly larger
- only the outside silhouette remains visible