use bevy::{ pbr::wireframe::{Wireframe, WireframeConfig, WireframePlugin}, prelude::*, render::{options::WgpuOptions, render_resource::WgpuFeatures}, }; use crate::geometry::CyberSphere; fn wireframe( mut commands: Commands, mut wireframe_config: ResMut, query: Query>, ) { let ent = query.single(); wireframe_config.global = false; commands.entity(ent).insert(Wireframe); } // public plugin pub struct CyberGlamorPlugin; impl Plugin for CyberGlamorPlugin { fn build(&self, app: &mut App) { app.insert_resource(WgpuOptions { features: WgpuFeatures::POLYGON_MODE_LINE, ..Default::default() }) .add_startup_system_to_stage(StartupStage::PostStartup, wireframe) .add_plugin(WireframePlugin); } }