Skip to content

Commit

Permalink
refactor: remove ZFunction (#64)
Browse files Browse the repository at this point in the history
Removes `ZFunction` from the render pipeline completely.

Z Functions were an artifact of my needs at a time before bevy_vello was
merged into Linebender. They are an opinionated component that will
calculate a new Z-index used for rendering for the user, with one of
many functions that would make sense for 2.5D games, 2D platformers,
etc.

Ultimately there's nothing special about Z Functions, they are just a
convenience that can easily exist outside of the rendering pipeline
using a system that changes the Z-value for an asset's transform on
Update, which is why I'm removing them.

This will help to heighten maintainability by reducing quite a bit of
code, and be less confusing for users who would've encountered these.
  • Loading branch information
simbleau committed Jul 20, 2024
1 parent 4d8f874 commit 5d900d7
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 965 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Subheadings to categorize changes are `added, changed, deprecated, removed, fixe

## Unreleased

### Removed

- Removed `ZFunction`s from the render pipeline. Now ordering is based solely on the `Transform`'s z component. If you dependeded on this behavior, you'll need to adjust the transform Z in a system prior to render.

## 0.5.1

### Fixed
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ members = [
"examples/demo",
"examples/drag_n_drop",
"examples/text",
"examples/z_ordering",
"examples/scene",
"examples/svg",
"examples/lottie",
Expand Down
12 changes: 0 additions & 12 deletions examples/z_ordering/Cargo.toml

This file was deleted.

91 changes: 0 additions & 91 deletions examples/z_ordering/src/assets/fonts/LICENSE

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 5d900d7

Please sign in to comment.