Skip to content

Add entry for bevy-vfx-bag #1216

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

Merged
merged 3 commits into from
Dec 12, 2022
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
51 changes: 51 additions & 0 deletions content/news/040/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,57 @@ affordable for median end devices.
[hikari-docs]: https://docs.rs/bevy-hikari
[hikari-github]: https://github.com/cryscan/bevy-hikari

### [Bevy Vfx Bag]

![Bevy vfx bag gif](underwater.gif)
_A composite effect applied to Bevy's 3D shapes example._

`bevy-vfx-bag` ([GitHub][bevy-vfx-bag-gh], [docs.rs][bevy-vfx-bag-docs])
is a visual effects library for the [Bevy][bevy] game engine.

It had its initial 0.1.0 release aligned with Bevy's recent 0.9.0 release.
Each effect has a plugin and effects are applied in order:

```rust
// Shows an example of adding three post processing effects:
app
.add_plugin(BevyVfxBagPlugin) // Always needed
.add_plugin(RaindropsPlugin) // Shows rain on-screen
.add_plugin(ChromaticAberrationPlugin) // Skews color channels
.add_plugin(LutPlugin) // Allows using a look-up table to remap colors for
// having a specific "feel" to your game
.run();
```

The camera which receives these effects is marked as such:

```rust
commands
.spawn(Camera3dBundle { ... })
.insert(PostProcessingInput) // Marks this camera for post processing usage
```

Effect settings can be changed at runtime:

```rust
fn update(time: Res<Time>, mut ca: ResMut<ChromaticAberration>) {
// Make the red color channel skew in a sinusoidal fashion
ca.magnitude_r = time.elapsed_seconds().sin();
}
```

The GitHub repository has examples and videos for all effects.

A complete rework of the plugin is underway for version 0.2.0, where the
main goal is to align with and use Bevy's render graph features,
including the new post processing double buffering feature which arrived
in 0.9.0.

[Bevy Vfx Bag]: https://crates.io/crates/bevy-vfx-bag
[bevy-vfx-bag-gh]: https://github.com/torsteingrindvik/bevy-vfx-bag
[bevy-vfx-bag-docs]: https://docs.rs/bevy-vfx-bag/0.1.0/bevy_vfx_bag/
[bevy]: https://bevyengine.org

## Popular Workgroup Issues in Github

<!-- Up to 10 links to interesting issues -->
Expand Down
Binary file added content/news/040/underwater.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.