|
|
|
|
@ -1123,7 +1123,7 @@ fn setup_dissolve_materials(
|
|
|
|
|
// Used to insert Handle<DissolveMaterial>;
|
|
|
|
|
mut commands: Commands,
|
|
|
|
|
) {
|
|
|
|
|
info!("Setting up dissolve materials...");
|
|
|
|
|
debug!("Setting up dissolve materials...");
|
|
|
|
|
events
|
|
|
|
|
.iter()
|
|
|
|
|
// Handle this entity (mesh)
|
|
|
|
|
@ -1132,7 +1132,7 @@ fn setup_dissolve_materials(
|
|
|
|
|
.iter_many(parents.iter_ancestors(child))
|
|
|
|
|
.next() {
|
|
|
|
|
|
|
|
|
|
info!("Setting up dissolve material for {:?} {:?}", name, child);
|
|
|
|
|
debug!("Setting up dissolve material for {:?} {:?}", name, child);
|
|
|
|
|
|
|
|
|
|
// Extension we will add to existing gltf-sourced materials
|
|
|
|
|
let extension = DissolveExtension {
|
|
|
|
|
@ -1176,7 +1176,7 @@ fn capture_piece(
|
|
|
|
|
mut timer: Local<f32>,
|
|
|
|
|
time: Res<Time>,
|
|
|
|
|
) {
|
|
|
|
|
info!("Running capture piece routine");
|
|
|
|
|
debug!("Running capture piece routine");
|
|
|
|
|
match *state {
|
|
|
|
|
// State is None, so we need to initiate the animation
|
|
|
|
|
None => {
|
|
|
|
|
@ -1219,7 +1219,7 @@ fn capture_piece(
|
|
|
|
|
score.captures(!*side).saturating_sub(1),
|
|
|
|
|
t.translation
|
|
|
|
|
);
|
|
|
|
|
info!("Setting translation for captured piece {:?}", entity);
|
|
|
|
|
debug!("Setting translation for captured piece {:?}", entity);
|
|
|
|
|
t.translation =
|
|
|
|
|
capture_translation(side, score.captures(!*side).saturating_sub(1));
|
|
|
|
|
|
|
|
|
|
@ -1402,7 +1402,7 @@ fn fixup_shadows(
|
|
|
|
|
mut point_lights: Query<&mut PointLight>,
|
|
|
|
|
mut directional_lights: Query<&mut DirectionalLight>,
|
|
|
|
|
) {
|
|
|
|
|
info!("Fixing up shadows");
|
|
|
|
|
debug!("Fixing up shadows");
|
|
|
|
|
spot_lights.iter_mut().for_each(|(mut l, n)| {
|
|
|
|
|
if n.as_str().starts_with("Spot") {
|
|
|
|
|
l.shadows_enabled = true;
|
|
|
|
|
|