Outlines

A post-processing outline shader that detects depth and normal discontinuities to add clean, stylized contours.

What it demonstrates

  • Screen-space outline detection based on depth and normal discontinuities
  • Clean silhouettes and internal edges without modifying object materials
  • Tunable thresholds for controlling edge sensitivity
  • Adjustable outline thickness and color for different visual styles

Tech

Post-processing edge detection, depth and normal buffer sampling, discontinuity thresholds, configurable outline width and blending.

Performance notes

Cost mainly scales with screen resolution, sample count, and outline thickness. The first optimization step is reducing the number of neighboring samples and keeping the outline radius small.

Contact me