Remove unused extraction of OutlineStencil.

This commit is contained in:
Robin KAY 2023-10-27 21:28:36 +01:00
parent 7ccd52ee83
commit fd8e98f986
1 changed files with 0 additions and 12 deletions

View File

@ -21,7 +21,6 @@
//! [`AutoGenerateOutlineNormalsPlugin`].
use bevy::asset::load_internal_asset;
use bevy::ecs::query::QueryItem;
use bevy::prelude::*;
use bevy::render::extract_component::{
ExtractComponent, ExtractComponentPlugin, UniformComponentPlugin,
@ -90,16 +89,6 @@ impl Default for OutlineStencil {
}
}
impl ExtractComponent for OutlineStencil {
type Query = &'static OutlineStencil;
type Filter = ();
type Out = Self;
fn extract_component(item: QueryItem<Self::Query>) -> Option<Self> {
Some(item.clone())
}
}
fn lerp_bool(this: bool, other: bool, scalar: f32) -> bool {
if scalar <= 0.0 {
this
@ -208,7 +197,6 @@ impl Plugin for OutlinePlugin {
);
app.add_plugins((
ExtractComponentPlugin::<OutlineStencil>::extract_visible(),
ExtractComponentPlugin::<OutlineRenderLayers>::default(),
UniformComponentPlugin::<OutlineStencilUniform>::default(),
UniformComponentPlugin::<OutlineVolumeUniform>::default(),