Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shanecelis/bevy_video_glitch
A video glitch effect for bevy
https://github.com/shanecelis/bevy_video_glitch
bevy gamedev shaders
Last synced: about 2 months ago
JSON representation
A video glitch effect for bevy
- Host: GitHub
- URL: https://github.com/shanecelis/bevy_video_glitch
- Owner: shanecelis
- License: apache-2.0
- Created: 2023-12-14T05:25:03.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-26T05:37:22.000Z (5 months ago)
- Last Synced: 2024-09-18T09:08:33.985Z (3 months ago)
- Topics: bevy, gamedev, shaders
- Language: Rust
- Homepage:
- Size: 223 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# bevy_video_glitch
![Maintenance](https://img.shields.io/badge/maintenance-actively--developed-brightgreen.svg)
[![CI](https://github.com/shanecelis/bevy_video_glitch/actions/workflows/rust.yml/badge.svg)](https://github.com/shanecelis/bevy_video_glitch/actions)
[![crates-io](https://img.shields.io/crates/v/bevy_video_glitch.svg)](https://crates.io/crates/bevy_video_glitch)
[![api-docs](https://docs.rs/bevy_video_glitch/badge.svg)](https://docs.rs/bevy_video_glitch)This crate provides a post processing video glitch effect for the [bevy game engine](https://bevyengine.org).
![Cube example](https://github.com/shanecelis/bevy_video_glitch/assets/54390/95100192-b1eb-4797-bce7-0c71b4f842f4)
# Install
``` sh
cargo add bevy_video_glitch
```# Usage
## Add plugin to app
```compile
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(bevy_video_glitch::VideoGlitchPlugin)
.run()
}
```## Add settings to camera
```compile
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:
``` sh
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 |# License
This crate is licensed under the MIT License or the Apache License 2.0.
# Acknowlegments
* [Video Glitch](https://www.shadertoy.com/view/XtK3W3) by [dyvoid](https://www.shadertoy.com/user/dyvoid).
* [Post Processing](https://github.com/bevyengine/bevy/blob/v0.12.1/examples/shader/post_processing.rs) example from [bevy](https://bevyengine.org), which I wrote a series of toots about [here](https://mastodon.gamedev.place/@shanecelis/111583689226043395).