Skip to content

Commit

Permalink
Use MaterialMesh2dBundle with ColorMaterial (#224)
Browse files Browse the repository at this point in the history
* Use `MaterialMesh2dBundle` with `ColorMaterial`

* clippy

* Fix green channel filtering bug

* Clippy again
  • Loading branch information
Nilirad committed Jul 5, 2024
1 parent a9e32a6 commit 8bf0944
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 62 deletions.
2 changes: 1 addition & 1 deletion src/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{geometry::Geometry, plugin::COLOR_MATERIAL_HANDLE};

/// A Bevy `Bundle` to represent a shape.
#[allow(missing_docs)]
#[derive(Bundle, Default)]
#[derive(Bundle)]
pub struct ShapeBundle {
pub path: Path,
pub mesh: Mesh2dHandle,
Expand Down
46 changes: 0 additions & 46 deletions src/render/mod.rs

This file was deleted.

15 changes: 0 additions & 15 deletions src/render/shape_material.wgsl

This file was deleted.

0 comments on commit 8bf0944

Please sign in to comment.