diff --git a/Cargo.toml b/Cargo.toml index 50254e0..ad4b5b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,18 +10,18 @@ repository = "https://github.com/johanhelsing/noisy_bevy" version = "0.6.0" [dependencies] -bevy = { version = "0.13", default-features = false, features = [ +bevy = { version = "0.14", default-features = false, features = [ "bevy_asset", "bevy_render" ] } [dev-dependencies] -bevy = { version = "0.13", default-features = false, features = [ +bevy = { version = "0.14", 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.25", default-features = false, features = ["default_fonts"] } -bevy_pancam = { version = "0.11", features = ["bevy_egui"] } +bevy_egui = { version = "0.28", default-features = false, features = ["default_fonts"] } +bevy_pancam = { version = "0.12", features = ["bevy_egui"] } insta = "1.21" diff --git a/assets/examples/asteroid_background.wgsl b/assets/examples/asteroid_background.wgsl index ade27d2..f5c5086 100644 --- a/assets/examples/asteroid_background.wgsl +++ b/assets/examples/asteroid_background.wgsl @@ -1,6 +1,6 @@ #import noisy_bevy::fbm_simplex_2d_seeded #import bevy_sprite::mesh2d_functions::{ - get_model_matrix, + get_world_from_local, mesh2d_position_local_to_clip, } @@ -25,7 +25,7 @@ struct VertexOutput { fn vertex(vertex: Vertex) -> VertexOutput { var out: VertexOutput; // Project the world position of the mesh into screen position - let model = get_model_matrix(vertex.instance_index); + let model = get_world_from_local(vertex.instance_index); out.clip_position = mesh2d_position_local_to_clip(model, vec4(vertex.position, 1.0)); out.object_position = vertex.position.xy; return out; diff --git a/examples/asteroids.rs b/examples/asteroids.rs index 166fbc5..4d9f832 100644 --- a/examples/asteroids.rs +++ b/examples/asteroids.rs @@ -115,7 +115,7 @@ fn expand_asteroids( if ((x * x + y * y) as f32) < (params.radius + o).powi(2) { asteroid.spawn(SpriteBundle { sprite: Sprite { - color: Color::GRAY, + color: Color::WHITE.with_luminance(0.2), custom_size: Some(Vec2::splat(1.)), ..default() }, diff --git a/examples/basic.rs b/examples/basic.rs index 2082740..22eb210 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -42,7 +42,7 @@ fn setup(mut commands: Commands) { // spawn a corresponding tile with a color thats more white the higher the height commands.spawn(SpriteBundle { sprite: Sprite { - color: Color::WHITE * height * 0.03, + color: Color::WHITE.with_luminance(height * 0.03), custom_size: Some(Vec2::splat(1.)), ..default() },