mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-21 07:55:55 +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:
+14
-3
@@ -52,9 +52,20 @@ fn skybox_assets_loaded(
|
||||
return false;
|
||||
};
|
||||
|
||||
assets.get_load_state(skybox_assets.cubemap.clone_weak()) == LoadState::Loaded
|
||||
&& assets.get_load_state(skybox_assets.env_diffuse.clone_weak()) == LoadState::Loaded
|
||||
&& assets.get_load_state(skybox_assets.env_specular.clone_weak()) == LoadState::Loaded
|
||||
let load_states = (
|
||||
assets.get_load_state(skybox_assets.cubemap.clone_weak()),
|
||||
assets.get_load_state(skybox_assets.env_diffuse.clone_weak()),
|
||||
assets.get_load_state(skybox_assets.env_specular.clone_weak()),
|
||||
);
|
||||
|
||||
matches!(
|
||||
load_states,
|
||||
(
|
||||
Some(LoadState::Loaded),
|
||||
Some(LoadState::Loaded),
|
||||
Some(LoadState::Loaded),
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
fn spawn_skybox(
|
||||
|
||||
Reference in New Issue
Block a user