diff --git a/crates/bevy_sprite/src/render/mod.rs b/crates/bevy_sprite/src/render/mod.rs index f0a73d804e883..1f4c2005ed8f1 100644 --- a/crates/bevy_sprite/src/render/mod.rs +++ b/crates/bevy_sprite/src/render/mod.rs @@ -109,7 +109,7 @@ pub fn build_sprite_pipeline(shaders: &mut Assets) -> PipelineDescriptor topology: PrimitiveTopology::TriangleList, strip_index_format: None, front_face: FrontFace::Ccw, - cull_mode: CullMode::Back, + cull_mode: CullMode::None, polygon_mode: PolygonMode::Fill, }, ..PipelineDescriptor::new(ShaderStages { diff --git a/examples/2d/contributors.rs b/examples/2d/contributors.rs index 041feff06ef10..a85651004172b 100644 --- a/examples/2d/contributors.rs +++ b/examples/2d/contributors.rs @@ -74,8 +74,7 @@ fn setup( // some sprites should be flipped let flipped = rnd.gen_bool(0.5); - let mut transform = Transform::from_xyz(pos.0, pos.1, 0.0); - transform.scale.x *= if flipped { -1.0 } else { 1.0 }; + let transform = Transform::from_xyz(pos.0, pos.1, 0.0); commands .spawn((Contributor { color: col },)) @@ -87,6 +86,7 @@ fn setup( sprite: Sprite { size: Vec2::new(1.0, 1.0) * SPRITE_SIZE, resize_mode: SpriteResizeMode::Manual, + flip_x: flipped, ..Default::default() }, material: materials.add(ColorMaterial {