aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-06-04 14:32:59 -0400
committerLibravatar Silas Bartha <[email protected]>2024-06-04 14:32:59 -0400
commit8f15162b4847ea30316f33fe3a7f0c20822fe926 (patch)
tree36ce0e9386de6bf963fbd169a664d1ddc9e3d03f /src/lib.rs
parent19449be0027cf3e9df3b5e9253e8716c3938a7a1 (diff)
Renamed + Added Docs
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 144dfe8..dd0b9ef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,9 @@
#![warn(missing_docs)]
+//! A plugin for the Bevy game engine which provides an outline post-process effect. The effect
+//! makes use of a normal prepass to generate outlines where differences in the normal buffer
+//! occur.
+
use bevy::{
asset::embedded_asset,
core_pipeline::core_3d::graph::{Core3d, Node3d},
@@ -13,12 +17,14 @@ use bevy::{
pub use nodes::OutlineRenderLabel;
-pub struct OutlinePostProcessPlugin;
-
+/// Components used by this plugin.
pub mod components;
mod nodes;
mod resources;
+/// Plugin which provides an outline post-processing effect.
+pub struct OutlinePostProcessPlugin;
+
impl Plugin for OutlinePostProcessPlugin {
fn build(&self, app: &mut App) {
embedded_asset!(app, "../assets/shaders/outline_post_process.wgsl");