🔳 CosterGraphics.Systems.OutlineSystem
🏒 OutlineSystem Renderer Features' Render Passes Overview
Render Passes are like the "🔪prep cooks" in the Outline System's kitchen analogy. They generate the texture masks (the outline ingredients) that your Composite Shaders use to create the final outlines. Each pass runs in sequence during the URP Render Graph execution, producing textures off-screen for sampling in the Full-Screen Shader Graph Final-Composite shaders.
ℹ️ How Render Passes Work
- Purpose: Collecting data from
🔳Outline3Dobjects (e.g., silhouettes, depths, normals) into textures. - Execution: Passes are enqueued conditionally based on the Composite Shader's needs.
- Types: Mask passes (generate data), Intermediate/Composite passes (process/finalize data).
- Performance: Mask and Intermediate Passes Only run when required by the Composite pass. Higher tiers add more passes for increased complexity and flexibility.
📋 List of Render Passes
The OutlineSystem includes the following passes, organized by tier. Click for details.
🎭 Mask Passes (Generate Textures)
- ⬜ Outline Color Mask Pass: Renders basic silhouettes.
- 🧱 Outline Depth-Tested Color Mask Pass: Silhouettes with depth testing.
- 📸 Camera Color Copy Pass: Copies opaque scene color.
- ⬛ Outline Depth Mask Pass: Captures object depths.
- 🟦 Outline Normals Mask Pass: Renders view-space normals.
- 🟩 Outline UV Mask Pass: Renders view-space normals.
- 🪪 Outline Object ID Mask Pass: Assigns per-object IDs.
🔁 Intermediate Passes (Process Data)
- 🌱 JFA Seeds Mask Pass: Generates UV seeds for Jump Flood Algorithm (JFA).
- 🦘 JFA Copy/Jump Passes: Flood-fill steps for distance fields.
🖼️ Final Composite Pass
- 🖼️ Final Composite Pass: Final Full-Screen Composite Pass. Blends masks into screen-space outlines.
🏒🧜♂️ Outline3DRenderFeature Render Pass Flow Diagram
---
config:
theme: dark
---
flowchart TD
A(⬜ Color Mask Pass)
B(🧱 Depth-Tested Color Mask Pass)
C(📸 Camera Color Copy Pass)
D(⬛Depth/🟦Normals/🪪ObjectID Mask Passes)
E(🌱 JFA Seeds Passes)
F(🦘 JFA Flood Fill Passes)
G(🖼️ Final Outline Composite Pass)
A --> B
B --> C
C --> D
D --> E
E --> F
F --> G
⭐ OutlineSystem Tier Usage
- 🧑🎨Outline3DRenderFeatureSimple: Color Mask + Depth Tested Color Mask + Final Composite Render Passes.
- 🧑🎨🧑🎨Outline3DRenderFeatureBasic: Adds Depth/Normals/UV Mask Render Passes.
- 🧑🎨🧑🎨🧑🎨Outline3DRenderFeatureAdvanced: Adds Object ID Mask Pass.
- 🧑🎨🧑🎨🧑🎨🧑🎨Outline3DRenderFeaturePro: Adds JFA (Jump Flood Algorithm) Render Passes for advanced effects.
For setup, see Renderer Features. Questions? Check Troubleshooting.