Skip to content

Commit 2fbccdf

Browse files
torsteingrindvik17cupsofcoffeeAngelOnFira
authored
Add entry for bevy-vfx-bag (#1216)
Co-authored-by: Joe Clay <[email protected]> Co-authored-by: Forest Anderson <[email protected]>
1 parent d27a22e commit 2fbccdf

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

content/news/040/index.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,57 @@ affordable for median end devices.
647647
[hikari-docs]: https://docs.rs/bevy-hikari
648648
[hikari-github]: https://github.com/cryscan/bevy-hikari
649649

650+
### [Bevy Vfx Bag]
651+
652+
![Bevy vfx bag gif](underwater.gif)
653+
_A composite effect applied to Bevy's 3D shapes example._
654+
655+
`bevy-vfx-bag` ([GitHub][bevy-vfx-bag-gh], [docs.rs][bevy-vfx-bag-docs])
656+
is a visual effects library for the [Bevy][bevy] game engine.
657+
658+
It had its initial 0.1.0 release aligned with Bevy's recent 0.9.0 release.
659+
Each effect has a plugin and effects are applied in order:
660+
661+
```rust
662+
// Shows an example of adding three post processing effects:
663+
app
664+
.add_plugin(BevyVfxBagPlugin) // Always needed
665+
.add_plugin(RaindropsPlugin) // Shows rain on-screen
666+
.add_plugin(ChromaticAberrationPlugin) // Skews color channels
667+
.add_plugin(LutPlugin) // Allows using a look-up table to remap colors for
668+
// having a specific "feel" to your game
669+
.run();
670+
```
671+
672+
The camera which receives these effects is marked as such:
673+
674+
```rust
675+
commands
676+
.spawn(Camera3dBundle { ... })
677+
.insert(PostProcessingInput) // Marks this camera for post processing usage
678+
```
679+
680+
Effect settings can be changed at runtime:
681+
682+
```rust
683+
fn update(time: Res<Time>, mut ca: ResMut<ChromaticAberration>) {
684+
// Make the red color channel skew in a sinusoidal fashion
685+
ca.magnitude_r = time.elapsed_seconds().sin();
686+
}
687+
```
688+
689+
The GitHub repository has examples and videos for all effects.
690+
691+
A complete rework of the plugin is underway for version 0.2.0, where the
692+
main goal is to align with and use Bevy's render graph features,
693+
including the new post processing double buffering feature which arrived
694+
in 0.9.0.
695+
696+
[Bevy Vfx Bag]: https://crates.io/crates/bevy-vfx-bag
697+
[bevy-vfx-bag-gh]: https://github.com/torsteingrindvik/bevy-vfx-bag
698+
[bevy-vfx-bag-docs]: https://docs.rs/bevy-vfx-bag/0.1.0/bevy_vfx_bag/
699+
[bevy]: https://bevyengine.org
700+
650701
## Popular Workgroup Issues in Github
651702

652703
<!-- Up to 10 links to interesting issues -->

content/news/040/underwater.gif

2.12 MB
Loading

0 commit comments

Comments
 (0)