diff --git a/Cargo.toml b/Cargo.toml index 412d3f07b..6482fcb29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,20 +37,26 @@ features = ["serialize"] rustdoc-args = ["--cfg", "docsrs"] [features] -bevy_egui = ["dep:bevy_egui"] -serialize = ["bevy/serialize", "trackball/serde"] c11-orbit = ["trackball/cc"] +serialize = ["bevy/serialize", "trackball/serde", "bevy_egui?/serde"] +bevy_egui = ["dep:bevy_egui"] [dependencies] -bevy = { version = "0.15.0-rc.2", default-features = false, features = ["bevy_render", "custom_cursor", "wayland"] } -bevy_egui = { version = "0.30.0", default-features = false, features = ["render"], optional = true } trackball = { version = "0.15.0", features = ["glam"] } +bevy_egui = { git = "https://github.com/mvlabat/bevy_egui", rev = "refs/pull/309/head", default-features = false, features = ["render"], optional = true } -[dev-dependencies.bevy] -version = "0.15.0-rc.2" +[dependencies.bevy] +version = "0.15.0-rc.3" default-features = false features = [ + "bevy_render", "bevy_winit", +] + +[dev-dependencies.bevy] +version = "0.15.0-rc.3" +default-features = false +features = [ "custom_cursor", "bevy_core_pipeline", "bevy_pbr", diff --git a/README.md b/README.md index 00d389296..9651cc2a3 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ Run interactive [examples] in your browser using [WebAssembly] and [WebGL]. [WebAssembly]: https://en.wikipedia.org/wiki/WebAssembly [WebGL]: https://en.wikipedia.org/wiki/WebGL -**NOTE**: Not all features are enabled by default, see [Optional Features](#optional-features). +**NOTE**: Not all features are enabled by default, see [Optional Features](#optional-features). On +Linux the `bevy/wayland` or `bevy/x11` feature gate must be enabled for a successful build. ## Camera Modes @@ -102,10 +103,9 @@ away from the screen’s center (e.g., the rotation accelerates towards the edge Following features are disabled unless their corresponding feature gate is enabled: - * `bevy_egui` for automatic viewport stealing whenever `egui` wants focus. On Linux you have - to enable either the `bevy/wayland` or the `bevy/x11` feature gate as well. - * `serialize` for `serde` support of various structures of this crate and its dependencies. * `c11-orbit` for testing the behaviorally identical C implementation of the exponential map. + * `serialize` for `serde` support of various structures of this crate and its dependencies. + * `bevy_egui` for automatic viewport stealing whenever `egui` wants focus. See the [release history](RELEASES.md) and [roadmap](#Roadmap) to keep track of the development. diff --git a/RELEASES.md b/RELEASES.md index 6b5cf4993..55b53bf30 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,7 @@ +# Version 0.9.0 (2024-11-??) + + * Update Bevy to `0.15.0`. + # Version 0.8.0 (2024-10-27) * Update `bevy_egui`. diff --git a/examples/egui.rs b/examples/egui.rs index 299a4a920..86464117f 100644 --- a/examples/egui.rs +++ b/examples/egui.rs @@ -148,9 +148,9 @@ fn setup( // The main pass camera with controller. let controller = commands .spawn(( - Camera3dBundle::default(), TrackballController::default(), TrackballCamera::look_at(target, eye, up), + Camera3d::default(), )) .id(); @@ -172,8 +172,8 @@ fn setup( fn render_to_image_example_system( cube_preview_image: Res, - preview_cube_query: Query<&Handle, With>, - main_cube_query: Query<&Handle, With>, + preview_cube_query: Query<&MeshMaterial3d, With>, + main_cube_query: Query<&MeshMaterial3d, With>, mut materials: ResMut>, mut contexts: EguiContexts, ) { diff --git a/src/lib.rs b/src/lib.rs index 24582720e..0a8ae55a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ //! [WebGL]: https://en.wikipedia.org/wiki/WebGL //! //! **NOTE**: Not all features are enabled by default, see [Optional Features](#optional-features). +//! On Linux the `bevy/wayland` or `bevy/x11` feature gate must be enabled for a successful build. //! //! # Camera Modes //!