mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 00:23:14 +00:00
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:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user