bevy-shaders

Crates.iobevy-shaders
lib.rsbevy-shaders
version
sourcesrc
created_at2025-02-01 15:51:09.830956
updated_at2025-02-01 20:55:20.526084
descriptionA collection of shaders for Bevy 💠
homepagehttps://github.com/SKY-ALIN/bevy-shaders
repositoryhttps://github.com/SKY-ALIN/bevy-shaders
max_upload_size
id1538536
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`
size0
Vladimir Alinsky (SKY-ALIN)

documentation

https://docs.rs/bevy-shaders

README

A collection of shaders for Bevy 💠

It includes only 3 shaders now. Sorry, but this is temporary because it's just created />~<\

Shader Preview

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.

Shader Preview

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.

Shader Preview

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.

Commit count: 9

cargo fmt