diff --git a/Cargo.toml b/Cargo.toml index fb1abff..ed82474 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ name = "bevy_mod_physx" path = "src/lib.rs" [dependencies] -bevy = "0.11.0" +bevy = "0.12.0" derive_more = "0.99.17" enumflags2 = "0.7.7" physx = "0.19.0" @@ -25,7 +25,7 @@ physx-sys = "0.11.5" serde = { version = "1", features = ["derive"], optional = true } [dev-dependencies] -bevy-inspector-egui = "0.20.0" +bevy-inspector-egui = "0.21.0" [features] serialize = ["dep:serde", "bevy/serialize"] diff --git a/examples/common/mod.rs b/examples/common/mod.rs index 4ec9280..1e4e856 100644 --- a/examples/common/mod.rs +++ b/examples/common/mod.rs @@ -15,7 +15,7 @@ use std::time::Duration; use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}; use bevy::input::common_conditions::input_toggle_active; -use bevy::pbr::DirectionalLightShadowMap; +use bevy::pbr::{DirectionalLightShadowMap, ShadowFilteringMethod}; use bevy::prelude::*; use bevy_mod_physx::prelude::*; @@ -48,6 +48,9 @@ impl Plugin for DemoUtils { brightness: 1.0 / 5.0f32, }); app.insert_resource(Msaa::default()); + + // using 4096x4096 shadow maps to get the best possible quality + // for demos, but it's not great for performance app.insert_resource(DirectionalLightShadowMap { size: 4096 }); // log fps to console @@ -68,7 +71,7 @@ impl Plugin for DemoUtils { app.add_systems(Update, spacebar_pauses_simulation); if SIMULATION_STARTS_PAUSED { - app.add_systems(Startup, |mut time: ResMut