Skip to content

Commit

Permalink
Change CullMode to none for sprites (#241)
Browse files Browse the repository at this point in the history
With `CullMode::Back`, a sprite image that is rotated in x,y plane won't display properly

Co-authored-by: kaflu <[email protected]>
  • Loading branch information
kaflu and kaflu authored Aug 22, 2020
1 parent 47f3a0b commit 2dadc86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_sprite/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn build_sprite_sheet_pipeline(shaders: &mut Assets<Shader>) -> PipelineDesc
PipelineDescriptor {
rasterization_state: Some(RasterizationStateDescriptor {
front_face: FrontFace::Ccw,
cull_mode: CullMode::Back,
cull_mode: CullMode::None,
depth_bias: 0,
depth_bias_slope_scale: 0.0,
depth_bias_clamp: 0.0,
Expand Down Expand Up @@ -70,7 +70,7 @@ pub fn build_sprite_pipeline(shaders: &mut Assets<Shader>) -> PipelineDescriptor
PipelineDescriptor {
rasterization_state: Some(RasterizationStateDescriptor {
front_face: FrontFace::Ccw,
cull_mode: CullMode::Back,
cull_mode: CullMode::None,
depth_bias: 0,
depth_bias_slope_scale: 0.0,
depth_bias_clamp: 0.0,
Expand Down

0 comments on commit 2dadc86

Please sign in to comment.