diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components.rs | 2 | ||||
-rw-r--r-- | src/resources.rs | 2 |
2 files changed, 3 insertions, 1 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, diff --git a/src/resources.rs b/src/resources.rs index ac39b8a..072b21c 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -10,7 +10,6 @@ use bevy::{ TextureFormat, TextureSampleType, }, renderer::RenderDevice, - texture::BevyDefault, }, }; @@ -71,6 +70,7 @@ impl FromWorld for OutlinePostProcessPipeline { write_mask: ColorWrites::ALL, })], }), + zero_initialize_workgroup_memory: false, }); Self { |