Skip to content

Commit

Permalink
update for bevy 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
DGriffin91 committed Mar 7, 2023
1 parent 02bfa2e commit a87539c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
anyhow = "1.0"
bevy = "0.9"
bevy = "0.10"
image = "0.24"
futures-lite = "1.12"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bevy_mod_mipmap_generator

## A basic mipmap generator for bevy 0.9.
## A basic mipmap generator for bevy 0.10.

![example_without](example_without.jpg)
*without mipmaps*
Expand Down
6 changes: 5 additions & 1 deletion examples/test_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ fn setup(

// plane
commands.spawn(PbrBundle {
mesh: meshes.add(Mesh::from(shape::Plane { size: 20.0 })),
mesh: meshes.add(Mesh::from(shape::Plane {
size: 20.0,
..default()
})),
material: materials.add(StandardMaterial::from(images.add(image))),
..default()
});
Expand Down Expand Up @@ -86,6 +89,7 @@ fn create_test_image(size: u32, cx: f32, cy: f32) -> Image {
usage: TextureUsages::TEXTURE_BINDING
| TextureUsages::COPY_DST
| TextureUsages::RENDER_ATTACHMENT,
view_formats: &[TextureFormat::Rgba8UnormSrgb],
},
data,
..Default::default()
Expand Down

0 comments on commit a87539c

Please sign in to comment.