Skip to content

A simple post-processing outline effect that uses depth-based edge detection.

License

Notifications You must be signed in to change notification settings

MirzaBeig/Post-Processing-Wireframe-Outlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Post-Processing Wireframe/Outlines

Unity Version Unity Pipeline Support (Built-In) Unity Pipeline Support (URP) Unity Pipeline Support (HDRP)

GitHub followers Twitter Follow YouTube Channel Views YouTube Channel Subscribers

A wireframe and outline (2-in-1) effect for Unity that uses depth-based edge detection to render thick, quality post-processing wireframes and outlines. You can control the line thickness, edge detection threshold, colour, and blend state. Unlike the typical edge-detection techniques of using a sobel filter/kernel, we compare depth against the local area average- calculated using what is essentially box blur.

Stars Forks GitHub watchers GitHub repo size GitHub code size in bytes

Preview

Depth.Outlines.Preview.2.mp4
Depth.Outlines.Round.mp4

Compatibility

  • Built-in pipeline.
  • Tested with Unity 2021.3 (LTS).

Installation

You'll find everything under Mirza Beig/Post-Processing-Wireframe-Outlines/...

Usage

Easy as,

  1. Attach these two components to your camera.
  2. Set to render at least 'Depth', and assign the material.

...That's it.

238803119-38e8040a-b09c-4b36-89cc-e14715915fab

You can then tweak the material, for example: to get this automatic per-object line colour look.

238801956-4b456446-d5a9-41d7-a873-281fd68ccab8

Or to render thick, painterly strokes- best used in combination with some kind of stylized surface shader.

image

About

A simple post-processing outline effect that uses depth-based edge detection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published