2 unstable releases
new 0.2.0 | Feb 1, 2025 |
---|---|
0.1.0 | Feb 1, 2025 |
#570 in Game dev
225 downloads per month
38KB
299 lines
A collection of shaders for Bevy 💠
It includes only 3 shaders now. Sorry, but this is temporary because it's just created />~<\
Installation
This crate is published on crates.io, so you can just type cargo add bevy_shaders
Examples
Step 1: Enable ShadersPlugin plugin.
use bevy::prelude::*;
use bevy_shaders::prelude::*;
fn main() {
App::new()
.add_plugins((DefaultPlugins, ShadersPlugin))
.run();
}
Step 2: Add a material you want. Availiable materials:
Text Shader
Only GPU-side rendred text, you don't have to render founts to texture and pass it to the shader. For light effect like here it uses emission, so don't forget to enable bloom shader.
Run this example using cargo run --example text
and see the source code at /examples/text
.
Blinking Led Shader
Randomly blinking led material. With it you don't have to make an animation for this effect.
Run this example using cargo run --example blinking_led
and see the source code at /examples/blinking_led
.
Under dual MIT and Apache-2.0 licenses, you can choose which one is more comfortable for you.
Dependencies
~22–33MB
~535K SLoC