bevy_mod_edge_detection

Crates.iobevy_mod_edge_detection
lib.rsbevy_mod_edge_detection
version0.1.0
sourcesrc
created_at2023-03-18 06:41:56.285922
updated_at2023-03-18 06:41:56.285922
descriptionA simple plugin to add an edge detection shader to bevy
homepage
repositoryhttps://github.com/IceSentry/bevy_mod_edge_detection
max_upload_size
id813547
size559,972
IceSentry (IceSentry)

documentation

README

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

Commit count: 10

cargo fmt