Skip to content

Commit

Permalink
Fixed alpha blending in bevy integration
Browse files Browse the repository at this point in the history
  • Loading branch information
urholaukkarinen committed Apr 6, 2024
1 parent ef14487 commit 28489c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/transform-gizmo-bevy/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl SpecializedRenderPipeline for TransformGizmoPipeline {
entry_point: "fragment".into(),
targets: vec![Some(ColorTargetState {
format,
blend: Some(BlendState::ALPHA_BLENDING),
blend: Some(BlendState::PREMULTIPLIED_ALPHA_BLENDING),
write_mask: ColorWrites::ALL,
})],
}),
Expand Down
2 changes: 1 addition & 1 deletion examples/bevy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod scene;

fn main() {
App::new()
.insert_resource(ClearColor(Color::BLACK))
.insert_resource(ClearColor(Color::rgb_u8(20, 20, 20)))
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
title: "transform-gizmo-demo".into(),
Expand Down

0 comments on commit 28489c6

Please sign in to comment.