29 releases

new 0.9.0 Dec 12, 2024
0.8.3 Aug 28, 2024
0.8.1 Jul 21, 2024
0.7.0 Mar 12, 2024
0.1.0 Jun 14, 2022

#164 in Game dev

Download history 204/week @ 2024-08-22 256/week @ 2024-08-29 121/week @ 2024-09-05 159/week @ 2024-09-12 290/week @ 2024-09-19 192/week @ 2024-09-26 103/week @ 2024-10-03 120/week @ 2024-10-10 134/week @ 2024-10-17 160/week @ 2024-10-24 131/week @ 2024-10-31 57/week @ 2024-11-07 98/week @ 2024-11-14 79/week @ 2024-11-21 126/week @ 2024-11-28 149/week @ 2024-12-05

460 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

1MB
3K SLoC

bevy_mod_outline

crates.io docs

Screenshot of bevy_mod_outline's shapes example

This crate provides a Bevy plugin for drawing outlines around meshes using the vertex extrusion and jump flood methods.

Dependency

[dependencies]
bevy_mod_outline = "0.9"

Examples

A rotating cube and torus with opaque and transparent outlines.

cargo run --example shapes

Multiple intersecting meshes sharing an outline plane. The outline stencil is offset to create a gap between the object and its outline.

cargo run --example pieces

Many instances of the same mesh, with two different outline configurations, flying towards the camera.

cargo run --example flying_objects

An outlined torus viewed through four cameras with different combinations of render layers enabled.

cargo run --example render_layers

An animated jointed glTF model with an outline.

cargo run --example animated_fox

A glTF model with pre-baked outline normals.

cargo run --example hollow

An animated morphing glTF model with an outline.

cargo run --example morph_targets

A pair of spheres, one outlined, with a UI for selecting different anti-aliasing modes.

cargo run --example ui_aa

An outlined non-manifold shape, with a UI for selecting different outlining methods and shapes.

cargo run --example ui_mode

An emissive sphere orbits another sphere, with outlines and HDR bloom post-processing.

cargo run --example bloom

Versions

This Version Bevy version
0.9.x 0.15.x
0.8.x 0.14.x
0.7.x 0.13.x
0.6.x 0.12.x
0.5.x 0.11.x
0.4.x 0.10.x
0.3.x 0.9.x
0.2.x 0.8.x
0.1.x 0.7.x

Features

  • flood (default) Enable support for the jump flood algorithm.
  • interpolation (default) - Define Lerp trait impls using the interpolation crate.
  • reflect (default) Define Reflect trait impls for the components.
  • scene (default) Enable the AsyncSceneInheritOutline component.

Licence

This crate is licensed under the Apache License, Version 2.0 (see LICENCE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) or the MIT licence (see LICENCE-MIT or http://opensource.org/licenses/MIT), at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~41–74MB
~1.5M SLoC