diff options
author | Silas Bartha <silas@exvacuum.dev> | 2024-12-11 02:03:02 -0500 |
---|---|---|
committer | Silas Bartha <silas@exvacuum.dev> | 2024-12-11 02:03:02 -0500 |
commit | 21c5461abdf9d988b6cc98af9392670e726742d3 (patch) | |
tree | c090ff49af51158e7ccc8b7e21fc62c49cd644eb /src | |
parent | 1242f8352a3777ae20a3a24df5fc707e3f3c1ee0 (diff) |
Upgraded to Bevy 0.15v0.4.0
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 { |