Skip to content

Commit e8e6163

Browse files
committed
set cull mode: None for Mesh2d (#7514)
# Objective allow negatively-scaled mesh2ds to render correctly by disabling back-face culling. this brings the mesh2d pipeline into line with the sprite pipeline. i don't see any cases where backface-culling would be useful for 2d meshes.
1 parent b30ba78 commit e8e6163

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_sprite/src/mesh2d

1 file changed

+1
-1
lines changed

crates/bevy_sprite/src/mesh2d/mesh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ impl SpecializedMeshPipeline for Mesh2dPipeline {
412412
layout: Some(vec![self.view_layout.clone(), self.mesh_layout.clone()]),
413413
primitive: PrimitiveState {
414414
front_face: FrontFace::Ccw,
415-
cull_mode: Some(Face::Back),
415+
cull_mode: None,
416416
unclipped_depth: false,
417417
polygon_mode: PolygonMode::Fill,
418418
conservative: false,

0 commit comments

Comments
 (0)