bevy_shaders/
lib.rs

1//! bevy_shader is a collection of shaders for the Bevy game engine 💠
2
3#[doc = include_str!("../README.md")]
4use bevy::prelude::*;
5
6pub mod blinking_led;
7pub(crate) mod color;
8pub mod led;
9pub mod prelude;
10pub mod text;
11
12pub use blinking_led::BlinkingLEDMaterial;
13pub use led::LEDMaterial;
14pub use text::{TextData, TextMaterial};
15
16/// The main plugin of bevy_shaders package. It registers all new materials, so you can use them easly.
17pub struct ShadersPlugin;
18
19impl Plugin for ShadersPlugin {
20    fn build(&self, app: &mut App) {
21        app.add_plugins(MaterialPlugin::<BlinkingLEDMaterial>::default())
22            .add_plugins(MaterialPlugin::<LEDMaterial>::default())
23            .add_plugins(MaterialPlugin::<TextMaterial>::default());
24    }
25}