Crates.io | bevy_mod_edge_detection |
lib.rs | bevy_mod_edge_detection |
version | 0.1.0 |
source | src |
created_at | 2023-03-18 06:41:56.285922 |
updated_at | 2023-03-18 06:41:56.285922 |
description | A simple plugin to add an edge detection shader to bevy |
homepage | |
repository | https://github.com/IceSentry/bevy_mod_edge_detection |
max_upload_size | |
id | 813547 |
size | 559,972 |
A simple plugin to add full screen edge detection.
The implementation is mostly based on what is described in this article.
https://alexanderameye.github.io/notes/rendering-outlines/#edge-detection
Essentially, it runs the sobel operator on the depth, normal and color textures. The sobel operator is able to determine discontinuity in those textures and the shader will simply draw those discontinuity.
See the examples/simples.rs example