Unity Courses Shader Stories: Edge Detection with Convolution Filters
Unity

Shader Stories: Edge Detection with Convolution Filters

Adding edge detection to a render texture in Unity by using compute shaders to process Sobel filters.

1 chapter · 12m Intermediate Updated 13 Feb 2022 Phil · @FirnoxGames
Free

Free for everyone. No account needed.

Start watching →

What you'll learn

1 Unity shader stories - Edge detection using convolution filters ▶ 12 min

Adding edge detection to a render texture in Unity by using compute shaders to process Sobel filters.

In this chapter
  1. Introduction
  2. VideoPlayer component and setup
  3. Image convolution introduction
  4. Sobel filters
  5. Shader introduction and greyscale
  6. Sobel filter shaders
  7. Running shaders
  8. Combining Sobel filters
  9. Thresholding
  10. Overlaying the edge detection
Included with this course
Video walkthrough · 12m
</>Annotated source code ↗ · public domain