Skip to content

Screen‐Space Outline

Vladislav Kantaev edited this page Oct 26, 2023 · 6 revisions

Modes

Screen-Space Outline can work in two modes:

  • Default: as a post-processing pass;
  • After Opaque: when it is drawn on top of the camera render target after rendering opaque geometries. This mode uses hardware blending, thus it draws directly to the render target.

📝 Note: Screen-Space Outlines do not apply any blur or anti-aliasing on their own. An anti-aliasing effect like FXAA can help smoothing them out.

Screen-Space Outline

Setup

Default

  • In the project window, right click and select Create/Toon RP/Post-Processing/Screen-Space Outline.
  • Go to your pipeline asset, make sure the post-processing is enabled, and add the newly created asset to the Post-Processing Passes list.

After Opaque

  • In the project window, right click and select Create/Toon RP/Extensions/Screen-Space Outline (After Opaque).
  • Go to your pipeline asset and add the newly created asset to the Extensions list.

Effect

Filters

The outlines are applied using an edge detection algorithm. Edges can be detected based on scene color, depth, and normals. Multiple filters can be enabled at the same time.

Color

📝 Note: After Opaque mode does not support the Color Filter.

Color Filter

Depth

📝 Note: Depth Filter requires Depth Pre-Pass.

Depth Filter

Normals

📝 Note: Normals Filter requires Depth Normals Pre-Pass.

Normals Filter

All Filters Combined

All Filters Combined

Other Properties

  • Color: color of the outlines (HDR). Transparency of outlines can be set via the alpha channel.
  • Use Fog: if enabled, applies fog from the scene settings to the outlines;
  • Max Distance: the outlines fade distance;
  • Distance Fade: smoothness of the distance fade.