bevy_edge_detection
bevy_edge_detection
is a Bevy plugin that provides edge detection post-processing using a 3x3 Sobel filter. This plugin is designed to enhance your Bevy projects by adding visually distinct edges to your 3D scenes, making them more stylized or easier to analyze.
Features
-
Edge Detection: Utilizes a 3x3 Sobel filter to detect edges based on depth, normal, and color variations.
-
Customizable Thresholds: Adjustable thresholds for depth, normal, and color to fine-tune edge detection.
-
Post-Processing Integration: Seamlessly integrates with Bevy's post-processing pipeline.
Usage
- Add bevy_edge_detection to your Cargo.toml:
= "0.15.1"
bevy_edge_detection
- Add the EdgeDetectionPlugin to your Bevy app:
use *;
use EdgeDetectionPlugin;
- Add
EdgeDetection
toCamera
:
commands.spawn;
Example
cargo run --example 3d_shapes
License
This project is licensed under the MIT License.
Acknowledgments
Thanks to IceSentry, this project was inspired by bevy_mod_edge_detection.