We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c14d8 commit eb15f81Copy full SHA for eb15f81
examples/3d/texture_pipelined.rs
@@ -1,7 +1,7 @@
1
use bevy::{
2
ecs::prelude::*,
3
math::{Quat, Vec2, Vec3},
4
- pbr2::{PbrBundle, StandardMaterial},
+ pbr2::{AlphaMode, PbrBundle, StandardMaterial},
5
prelude::{App, AssetServer, Assets, Transform},
6
render2::{
7
camera::PerspectiveCameraBundle,
@@ -41,6 +41,7 @@ fn setup(
41
let material_handle = materials.add(StandardMaterial {
42
base_color_texture: Some(texture_handle.clone()),
43
unlit: true,
44
+ alpha_mode: AlphaMode::Blend,
45
..Default::default()
46
});
47
@@ -49,6 +50,7 @@ fn setup(
49
50
base_color: Color::rgba(1.0, 0.0, 0.0, 0.5),
51
52
53
54
55
56
@@ -57,6 +59,7 @@ fn setup(
57
59
base_color: Color::rgba(0.0, 0.0, 1.0, 0.5),
58
60
base_color_texture: Some(texture_handle),
61
62
63
64
65
0 commit comments