Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to bevy 0.13 #10

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ repository = "https://github.com/johanhelsing/noisy_bevy"
version = "0.5.0"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version = "0.6.0"


[dependencies]
bevy = { version = "0.12", default-features = false, features = [
"bevy_asset",
"bevy_render"
] }
bevy = { version = "0.13", default-features = false, features = [
"bevy_asset",
"bevy_render"
] }

[dev-dependencies]
bevy = { version = "0.12", default-features = false, features = [
"bevy_sprite",
"bevy_winit",
"x11", # github actions runners don't have libxkbcommon installed, so can't use wayland
bevy = { version = "0.13", default-features = false, features = [
"bevy_sprite",
"bevy_winit",
"x11", # github actions runners don't have libxkbcommon installed, so can't use wayland
] }
rand = "0.8"
bevy_egui = { version = "0.23", default-features = false, features = ["default_fonts"] }
# bevy-inspector-egui = {version = "0.19.1", default-features = false}
bevy_pancam = { version = "0.10", features = ["bevy_egui"] }
bevy_egui = { version = "0.25", default-features = false, features = ["default_fonts"] }
bevy_pancam = { version = "0.11", features = ["bevy_egui"] }
insta = "1.21"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be safely upgrade to insta = "1.35"

2 changes: 1 addition & 1 deletion assets/examples/asteroid_background.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct AsteroidMaterial {
params: vec4<f32>
}

@group(1) @binding(0) var<uniform> material: AsteroidMaterial;
@group(2) @binding(0) var<uniform> material: AsteroidMaterial;

struct Vertex {
@builtin(instance_index) instance_index: u32,
Expand Down
2 changes: 1 addition & 1 deletion examples/asteroids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn expand_asteroids(
),
});

let quad_handle = meshes.add(Mesh::from(shape::Quad::new(Vec2::new(100.0, 100.0))));
let quad_handle = meshes.add(Mesh::from(Rectangle::from_size(Vec2::new(100.0, 100.0))));

asteroid.spawn(MaterialMesh2dBundle {
mesh: quad_handle.into(),
Expand Down
Loading