Skip to content
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ You can find its changes [documented below](#0102---2025-06-29).

This release supports Bevy version 0.17 and has an [MSRV][] of 1.87.

### Changed

- Some diagnostics were changed.
- `VelloEntityCountDiagnosticsPlugin::SCENE_COUNT` was split into `VelloEntityCountDiagnosticsPlugin::WORLD_SCENE_COUNT` and `VelloEntityCountDiagnosticsPlugin::UI_SCENE_COUNT` to more granularly track Ui and World entities.
- The `VelloScreenSpace` marker component has changed to `VelloRenderSpace::Screen`.

### Fixed

- Components that were marked with `ScreenSpace` no longer *always* render over components without them. Now it is correct - Screen space renderables will be sorted by their respective transform's Z value.
- Render targets are now resized when camera viewport size changes

## [0.10.3] - 2025-07-09
Expand Down
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ members = [
"examples/drag_n_drop",
"examples/text",
"examples/scene",
"examples/scene_screenspace",
"examples/scene_ui",
"examples/lottie",
"examples/lottie_screenspace",
"examples/lottie_ui",
"examples/svg",
"examples/svg_screenspace",
"examples/svg_ui",
"examples/render_layers",
"examples/cube3d",
Expand All @@ -34,6 +37,7 @@ bevy = { version = "0.17.2", default-features = false, features = [
"bevy_core_pipeline",
"bevy_render",
"bevy_ui",
"bevy_ui_render",
"multi_threaded",
"x11",
"tonemapping_luts",
Expand Down Expand Up @@ -83,4 +87,4 @@ default = []
svg = ["vello_svg"]
lottie = ["velato"]
text = ["parley"]
default_font = ["bevy/default_font", "text"]
default_font = ["bevy/default_font", "text"]
3 changes: 2 additions & 1 deletion examples/diagnostics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ fn update_scene_count_ui(
diagnostics: Res<DiagnosticsStore>,
mut text: Single<&mut Text, With<DiagnosticsText>>,
) {
let Some(scenes) = diagnostics.get(&VelloEntityCountDiagnosticsPlugin::SCENE_COUNT) else {
let Some(scenes) = diagnostics.get(&VelloEntityCountDiagnosticsPlugin::WORLD_SCENE_COUNT)
else {
return;
};
let Some(scene_count) = scenes.measurement() else {
Expand Down
5 changes: 4 additions & 1 deletion examples/lottie/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ fn main() {
..default()
}))
.add_plugins(VelloPlugin::default())
.add_systems(Startup, setup_camera)
.add_systems(Startup, load_lottie)
.add_systems(Update, gizmos);
embedded_asset!(app, "assets/Tiger.json");
app.run();
}

fn load_lottie(mut commands: Commands, asset_server: ResMut<AssetServer>) {
fn setup_camera(mut commands: Commands) {
commands.spawn((Camera2d, VelloView));
}

fn load_lottie(mut commands: Commands, asset_server: ResMut<AssetServer>) {
// You can also use `VelloLottieBundle`
commands
.spawn(VelloLottieHandle(
Expand Down
6 changes: 5 additions & 1 deletion examples/lottie_player/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ fn main() {
.add_plugins(VelloPlugin::default())
.init_resource::<EmbeddedAssetRegistry>()
.add_plugins(bevy_pancam::PanCamPlugin)
.add_systems(Startup, setup_camera)
.add_systems(Startup, setup_vector_graphics)
.add_systems(Update, print_metadata)
.add_systems(EguiPrimaryContextPass, ui::controls_ui);
embedded_asset!(app, "assets/calendar.json");
app.run();
}

fn setup_vector_graphics(mut commands: Commands, asset_server: ResMut<AssetServer>) {
fn setup_camera(mut commands: Commands) {
commands.spawn((Camera2d, bevy_pancam::PanCam::default(), VelloView));
}

fn setup_vector_graphics(mut commands: Commands, asset_server: ResMut<AssetServer>) {
commands
.spawn(VelloLottieBundle {
asset: VelloLottieHandle(
Expand Down
12 changes: 12 additions & 0 deletions examples/lottie_screenspace/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "lottie_screenspace"
version.workspace = true
license.workspace = true
edition.workspace = true
repository.workspace = true
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy_vello = { path = "../../", features = ["lottie"] }
bevy = { workspace = true }
Loading
Loading