mirror of
https://github.com/storytold/bevy-mocap.git
synced 2026-10-09 00:09:45 +00:00
add dexterous developer & egui inspector to example
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
use bevy::{pbr::{CascadeShadowConfigBuilder, DirectionalLightShadowMap}, prelude::*};
|
||||
use bevy_inspector_egui::quick::WorldInspectorPlugin;
|
||||
use dexterous_developer::{hot_bevy_main, InitialPlugins};
|
||||
|
||||
fn main() {
|
||||
#[hot_bevy_main]
|
||||
pub fn bevy_main(initial_plugins: impl InitialPlugins) {
|
||||
App::new()
|
||||
.add_plugins(initial_plugins.initialize::<DefaultPlugins>())
|
||||
.add_plugins(WorldInspectorPlugin::new())
|
||||
.insert_resource(DirectionalLightShadowMap { size: 4096 })
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_systems(Startup, setup)
|
||||
.run();
|
||||
}
|
||||
@@ -40,4 +44,5 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
scene: asset_server.load("example.gltf#Scene0"),
|
||||
..default()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user