diff options
Diffstat (limited to 'src/components.rs')
-rw-r--r-- | src/components.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs index 285a881..22de86c 100644 --- a/src/components.rs +++ b/src/components.rs @@ -1,11 +1,13 @@ use bevy::{ prelude::*, render::{extract_component::ExtractComponent, render_resource::ShaderType}, + core_pipeline::prepass::{NormalPrepass, DepthPrepass, DeferredPrepass}, }; /// 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)] +#[require(NormalPrepass, DepthPrepass, DeferredPrepass, Msaa(|| Msaa::Off))] pub struct OutlinePostProcessSettings { /// Weight of outlines in pixels. weight: f32, |