From 87a6511b037004b6374b8b517946429ad44aaa49 Mon Sep 17 00:00:00 2001 From: Torstein Grindvik Date: Sun, 4 Dec 2022 10:37:16 +0100 Subject: [PATCH 1/2] Add entry for bevy-vfx-bag Signed-off-by: Torstein Grindvik --- content/news/040/index.md | 50 ++++++++++++++++++++++++++++++++ content/news/040/underwater.gif | Bin 0 -> 2218243 bytes 2 files changed, 50 insertions(+) create mode 100644 content/news/040/underwater.gif diff --git a/content/news/040/index.md b/content/news/040/index.md index 9809b6e7b..5c901e206 100644 --- a/content/news/040/index.md +++ b/content/news/040/index.md @@ -335,6 +335,56 @@ commands [seq-actions-docs]: https://docs.rs/bevy-sequential-actions [bevy]: https://bevyengine.org +### [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