#shader #edge #detection #plugin #add #color #depth

bevy_mod_edge_detection

A simple plugin to add an edge detection shader to bevy

1 unstable release

0.1.0 Mar 18, 2023

#18 in #depth

MIT/Apache

295KB
468 lines

bevy_mod_edge_detection

A simple plugin to add full screen edge detection.

image

Implementation details

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.

Getting Started

See the examples/simples.rs example

Dependencies

~19–54MB
~1M SLoC