bevy_blacklight_material

Crates.iobevy_blacklight_material
lib.rsbevy_blacklight_material
version
sourcesrc
created_at2024-12-02 03:52:57.352463
updated_at2024-12-10 19:58:21.847575
descriptionA blacklight material plugin for the Bevy engine
homepage
repositoryhttps://git.exvacuum.dev/bevy_blacklight_material
max_upload_size
id1468199
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | 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
Silas Bartha (exvacuum)

documentation

README

bevy_blacklight_material

Crates License Tag Build

A plugin for the Bevy Engine which adds a "blacklight" material that is revealed by spot lights marked with a Blacklight component.

Feel free to contribute if you want to improve this, it was thrown together pretty hastily so there's bound to be some errors or oversights.

Compatibility

Crate Version Bevy Version
0.1 0.14
0.2 0.15

Installation

crates.io

[dependencies]
bevy_blacklight_material = "0.2"

Using git URL in Cargo.toml

[dependencies.bevy_rustysynth]
git = "https://git.exvacuum.dev/bevy_blacklight_material"

Usage

In main.rs:

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins((
            DefaultPlugins,
            BlacklightPlugin,
        ))
        .run();
}

Then you can create blacklight-emitting spotlights, and reveal-able surfaces, like this:

// Mesh with blacklight material
commands.spawn((
    //...
    MeshMaterial3d(asset_server.add(BlacklightMaterial::new(&asset_server, None, Color::WHITE))),
));


// Blacklight
// Requires `SpotLight`, but you might want to add one yourself
commands.spawn(Blacklight);

License

This crate is licensed under your choice of 0BSD, Apache-2.0, or MIT license.

Commit count: 0

cargo fmt