« Got Signed Distance Fields? Think about it. | Main

Material Post Effects

Edge Detection using the Scene Depth

A quick-and-dirty edge detection post effect, using a Material post effect node.  Relies upon 3 scene depth buffers and does an offset + subtract to find the edges.  This technique can be re-combined with the original frame buffer to create edge effects (toon / colored edge rendering). [Unreal Engine 3]

Shader graph (click to enlarge):

 

Edge Detection using the Frame Buffer

This uses the same technique, only applies it to the frame buffer (aka "Scene Texture" in UE3) instead of the scene depth.  Some cool details can emerge when tinkering with the values a bit.

 

Shader graph (click to enlarge):

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>