bevy_outline_post_process

Crates.iobevy_outline_post_process
lib.rsbevy_outline_post_process
version
sourcesrc
created_at2024-07-22 17:51:25.367535
updated_at2024-12-11 07:05:01.441039
descriptionAn adaptive outline post-processing effect for the Bevy game engine.
homepage
repositoryhttps://git.exvacuum.dev/bevy_outline_post_process
max_upload_size
id1311425
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_outline_post_process

Crates License Tag Docs

A plugin for the Bevy engine which adds an outline post-processing effect. Optionally supports adaptive outlining, so darker areas are outlined in white rather than black, based on luminance.

Note: This is a full-screen post process effect and cannot be enabled/disabled for specific objects.

Screenshots

Configuration Used:

bevy_outline_post_process::components::OutlinePostProcessSettings::new(2.0, 0.0, false, 0.0);

Compatibility

Crate Version Bevy Version
0.4 0.15
0.3 0.14
0.1-0.2 0.13

Installation

crates.io

[dependencies]
bevy_outline_post_process = "0.4"

Using git URL in Cargo.toml

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

Usage

In main.rs:

use bevy::prelude::*;
use bevy_outline_post_process;

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

When spawning a camera:

commands.spawn((
    // Camera3d...
    bevy_outline_post_process::components::OutlinePostProcessSettings::new(2.0, 0.0, false, 0.0);
));

This effect will only run for cameras which contain this component.

License

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

Commit count: 0

cargo fmt