-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possible
Description
Currently when using common materials like ColorMaterial and StandardMaterial, users need to remember to enable draw.is_transparent. This will be a common "foot gun" and it should really happen automatically if the color has an alpha component.
// currently this is required
world.spawn(NodeComponents {
material: materials.add(Color::rgba(1.0, 0.9, 0.9, 0.4).into()),
draw: Draw {
is_transparent: true,
..Default::default()
},
..Default::default()
})
// ideally the `0.4` alpha value results in alpha transparency
world.spawn(NodeComponents {
material: materials.add(Color::rgba(1.0, 0.9, 0.9, 0.4).into()),
..Default::default()
})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possible