2 releases
0.1.1 | Dec 17, 2023 |
---|---|
0.1.0 | Dec 16, 2023 |
#806 in Game dev
37 downloads per month
205KB
218 lines
bevy_video_glitch
This crate provides a post processing video glitch effect for the bevy game engine.
Install
cargo add bevy_video_glitch
Usage
Add plugin to app
app.add_plugins(bevy_video_glitch::VideoGlitchPlugin)
Add settings to camera
commands.spawn((
Camera3dBundle::default(),
// This component is also used to determine on which camera to run the post processing effect.
bevy_video_glitch::VideoGlitchSettings {
intensity: 1.0,
color_aberration: Mat3::IDENTITY
},
));
Example
Run the example like so:
cargo run --example cube
This will show a rotating cube like the one shown at the beginning of this README.
License
This crate is licensed under the MIT License or the Apache License 2.0.
Acknowlegments
-
Video Glitch by dyvoid.
-
Post Processing example from bevy, which I wrote a series of toots about here.
Dependencies
~21MB
~392K SLoC