Crates.io | bevy_video_glitch |
lib.rs | bevy_video_glitch |
version | 0.2.0 |
source | src |
created_at | 2023-12-16 10:31:11.740917 |
updated_at | 2024-07-24 04:10:39.650057 |
description | A video glitch effect for bevy |
homepage | |
repository | https://github.com/shanecelis/bevy_video_glitch |
max_upload_size | |
id | 1071668 |
size | 318,304 |
This crate provides a post processing video glitch effect for the bevy game engine.
cargo add bevy_video_glitch
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(bevy_video_glitch::VideoGlitchPlugin)
.run()
}
use bevy::prelude::*;
fn setup(mut commands: Commands) {
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
},
));
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.
bevy_video_glitch | bevy |
---|---|
0.2 | 0.14 |
0.1 | 0.12.1 |
This crate is licensed under the MIT License or the Apache License 2.0.
Video Glitch by dyvoid.
Post Processing example from bevy, which I wrote a series of toots about here.