diff --git a/examples/transforms/global_vs_local_translation.rs b/examples/transforms/global_vs_local_translation.rs index 07be0a7d3e9ed..a6877a1c68e5f 100644 --- a/examples/transforms/global_vs_local_translation.rs +++ b/examples/transforms/global_vs_local_translation.rs @@ -54,7 +54,11 @@ fn setup( .spawn(( PbrBundle { mesh: meshes.add(Mesh::from(shape::Cube { size: 1.0 })), - material: materials.add(Color::YELLOW.into()), + material: materials.add(StandardMaterial { + base_color: Color::YELLOW, + alpha_mode: AlphaMode::Blend, + ..Default::default() + }), ..default() }, ChangeGlobal, @@ -69,7 +73,11 @@ fn setup( child_builder.spawn(( PbrBundle { mesh: meshes.add(Mesh::from(shape::Cube { size: 0.5 })), - material: materials.add(Color::RED.into()), + material: materials.add(StandardMaterial { + base_color: Color::RED, + alpha_mode: AlphaMode::Blend, + ..Default::default() + }), transform: Transform::from_translation(Vec3::Y - Vec3::Z), ..default() }, @@ -80,7 +88,11 @@ fn setup( child_builder.spawn(( PbrBundle { mesh: meshes.add(Mesh::from(shape::Cube { size: 0.5 })), - material: materials.add(Color::GREEN.into()), + material: materials.add(StandardMaterial { + base_color: Color::GREEN, + alpha_mode: AlphaMode::Blend, + ..Default::default() + }), transform: Transform::from_translation(Vec3::Y + Vec3::Z), ..default() },