Skip to content

shanecelis/bevy_video_glitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bevy_video_glitch

Maintenance CI crates-io api-docs

This crate provides a post processing video glitch effect for the bevy game engine.

Cube example

Install

cargo add bevy_video_glitch

Usage

Add plugin to app

use bevy::prelude::*;
fn main() {
    App::new()
        .add_plugins(bevy_video_glitch::VideoGlitchPlugin)
        .run()
}

Add settings to camera

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
        },
    ));

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

About

A video glitch effect for bevy

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published