aboutsummaryrefslogtreecommitdiff
path: root/src/components.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/components.rs
parent19449be0027cf3e9df3b5e9253e8716c3938a7a1 (diff)
Renamed + Added Docs
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs
index cc6c471..49f4684 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -3,8 +3,13 @@ use bevy::{
render::{extract_component::ExtractComponent, render_resource::ShaderType},
};
+/// Component which, when inserted into an entity with a camera and normal prepass, enables an outline effect for that
+/// camera.
#[derive(Component, ShaderType, ExtractComponent, PartialEq, Clone, Default)]
pub struct OutlinePostProcessSettings {
+ /// Weight of outlines in pixels.
pub weight: f32,
+ /// A threshold for normal differences, values below this threshold will not become outlines.
+ /// Higher values will result in more outlines which may look better on smooth surfaces.
pub threshold: f32,
}