Upgrade to Bevy v0.12 (#12)

* Migrate `System::pipe(...)` calls to `System::map(...)`
* Migrate `EventReader::iter()` and `EventReader::into_iter()` calls to
  `EventReader::read()`
* Migrate asset handling
* Generate `*.meta` files for assets
* Migrate a shader import
* Fix emissive materials double-applying their emissive strength
* Fix non-normalized bone weights resulting in incorrect vertex positions
* Set shadow filtering to `Hardware2x2` to mitigate increase in shader
  compilation times
This commit is contained in:
Danny McGee
2023-11-22 23:05:42 -05:00
committed by GitHub
parent 8bf4abc3a4
commit 155272a5ba
148 changed files with 15479 additions and 16519 deletions
+2 -2
View File
@@ -252,7 +252,7 @@ fn translate_fps_camera_events(
}
// Wheel zoom
for &MouseWheel { y, .. } in mouse_wheel.iter() {
for &MouseWheel { y, .. } in mouse_wheel.read() {
// info!("wheel: ({x}, {y}) [{unit:?}]");
// let rem_x = (100. / x).abs() % 1.;
// let rem_y = (100. / y).abs() % 1.;
@@ -288,6 +288,6 @@ fn translate_fps_camera_events(
#[inline]
fn read_mouse_delta(mut mouse_motion: EventReader<MouseMotion>) -> Vec2 {
mouse_motion
.into_iter()
.read()
.fold(Vec2::ZERO, |accum, current| accum + current.delta)
}