-
-
Notifications
You must be signed in to change notification settings - Fork 29
Screen‐Space Outline
Vladislav Kantaev edited this page Oct 26, 2023
·
6 revisions
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.
- 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.
- 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.
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.
📝 Note:
After Opaque
mode does not support theColor Filter
.
📝 Note:
Depth Filter
requires Depth Pre-Pass.
📝 Note:
Normals Filter
requires Depth Normals Pre-Pass.
-
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.
Getting Started
Platform Support
Lighting and Shadows
- Global Ramp
- Shadows
- Variance Shadow Maps (VSM)
- Soft Shadows
- Additional Lights
- Additional Light Shadows
- Tiled Lighting (Forward+)
- Blob Shadows
- Fake Additional Lights
- Baked Lighting
Render Quality
Miscellaneous
Post-Processing
- Post-Processing Stack
- Bloom
- Inverted Hull Outline
- Screen-Space Outline
- SSAO
- Motion Blur
- Sharpen
- Light Scattering
Making Custom Shaders
Debugging