Skip to content

Commit f0d8826

Browse files
committed
Disable alpha blending in 3D.
Alpha blending causes transparent gizmos to show other gizmos through opaque objects.
1 parent 923bdd2 commit f0d8826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_gizmos/src/pipeline_3d.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl SpecializedMeshPipeline for GizmoPipeline {
9191
entry_point: "fragment".into(),
9292
targets: vec![Some(ColorTargetState {
9393
format,
94-
blend: Some(BlendState::ALPHA_BLENDING),
94+
blend: None,
9595
write_mask: ColorWrites::ALL,
9696
})],
9797
}),
@@ -102,7 +102,7 @@ impl SpecializedMeshPipeline for GizmoPipeline {
102102
},
103103
depth_stencil: Some(DepthStencilState {
104104
format: TextureFormat::Depth32Float,
105-
depth_write_enabled: false,
105+
depth_write_enabled: true,
106106
depth_compare: CompareFunction::Greater,
107107
stencil: Default::default(),
108108
bias: Default::default(),

0 commit comments

Comments
 (0)