# bevy_mod_outline **Repository Path**: happydpc/bevy_mod_outline ## Basic Information - **Project Name**: bevy_mod_outline - **Description**: (请注意:仓库路径即仓库访问 URL 地址,更改仓库路径将导致原克隆地址不可用) - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-03 - **Last Updated**: 2025-07-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bevy_mod_outline [![crates.io](https://img.shields.io/crates/v/bevy_mod_outline.svg)](https://crates.io/crates/bevy_mod_outline) [![docs](https://docs.rs/bevy_mod_outline/badge.svg)](https://docs.rs/bevy_mod_outline) ![Screenshot of bevy_mod_outline's shapes example](https://github.com/bevyengine/bevy-assets/blob/main/Assets/3D/bevy_mod_outline.png?raw=true) This crate provides a Bevy plugin for drawing outlines around meshes using the vertex extrusion and jump flood methods. ## Dependency ```toml [dependencies] bevy_mod_outline = "0.10" ``` ## Examples A rotating cube and torus with opaque and transparent outlines. ```shell 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. ```shell cargo run --example pieces ``` Many instances of the same mesh, with two different outline configurations, flying towards the camera. ```shell cargo run --example flying_objects ``` An outlined torus viewed through four cameras with different combinations of render layers enabled. ```shell cargo run --example render_layers ``` An animated jointed glTF model with an outline. ```shell cargo run --example animated_fox ``` A glTF model with pre-baked outline normals. ```shell cargo run --example hollow ``` An animated morphing glTF model with an outline. ```shell cargo run --example morph_targets ``` A pair of spheres, one outlined, with a UI for selecting different anti-aliasing modes. ```shell cargo run --example ui_aa ``` An outlined non-manifold shape, with a UI for selecting different outlining methods and shapes. ```shell cargo run --example ui_mode ``` An emissive sphere orbits another sphere, with outlines and HDR bloom post-processing. ```shell cargo run --example bloom ``` A flat square with a pulsing jump-flood outline masked by a checkerboard alpha pattern. ```shell cargo run --example alpha_mask ``` A set of shapes which can be selected by (shift-)clicking on them. ```shell cargo run --example picking ``` ## Versions | This Version | Bevy version | |--------------|--------------| | 0.10.x | 0.16.x | | 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 ) or the MIT licence (see LICENCE-MIT or ), 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.