Skip to content

Commit

Permalink
set cull mode: None for Mesh2d (#7514)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
robtfm committed Feb 5, 2023
1 parent b30ba78 commit e8e6163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/mesh2d/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl SpecializedMeshPipeline for Mesh2dPipeline {
layout: Some(vec![self.view_layout.clone(), self.mesh_layout.clone()]),
primitive: PrimitiveState {
front_face: FrontFace::Ccw,
cull_mode: Some(Face::Back),
cull_mode: None,
unclipped_depth: false,
polygon_mode: PolygonMode::Fill,
conservative: false,
Expand Down

0 comments on commit e8e6163

Please sign in to comment.