Crates.io | bevy-shaders |
lib.rs | bevy-shaders |
version | |
source | src |
created_at | 2025-02-01 15:51:09.830956 |
updated_at | 2025-02-01 20:55:20.526084 |
description | A collection of shaders for Bevy 💠|
homepage | https://github.com/SKY-ALIN/bevy-shaders |
repository | https://github.com/SKY-ALIN/bevy-shaders |
max_upload_size | |
id | 1538536 |
Cargo.toml error: | TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
It includes only 3 shaders now. Sorry, but this is temporary because it's just created />~<\
This crate is published on crates.io, so you can just type cargo add bevy_shaders
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:
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
.
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.