Geometry Outline

Overview

  • A URP outline system designed for performance and visual clarity:

  • Simple: Configure with ease, no coding required

  • Clean: Consistent look at any distance, with Stencil Test to prevent messy overlaps

  • Fast: Geometry-based outlines are the most efficient 3D solution

Ease of Use

  • Prefab Ready: Apply outlines instantly with preconfigured prefabs, no coding needed

  • Multi-Group Support: Define multiple independent outline groups with unique settings

  • Layer-Based Targeting: Precisely control which objects receive outlines using Unity’s layer system

Visual Features

  • Custom Colors: Use any RGBA color and intensity for outlines

  • Dynamic Thickness: Define min/max thickness with distance-based interpolation

  • Gradient Effects: Create outlines with directional gradients and adjustable ranges

  • Spherical Normal Blending: Blend spherical normals for smoother, organic outlines

  • Dual Rendering Modes: Choose between Stencil Test (clean, overlap-free) and Single Pass (fastest performance)

Usage Instructions

Basic Setup

  • Drag and drop GeometryOutline.prefab from the Prefabs folder into your scene.

  • The prefab includes a GeometryOutlineManager component, which handles all outline rendering.

Configuring Outline Groups

  • In the Inspector, select the GeometryOutlineManager GameObject.

  • Click “Add Outline Group” to create a new outline configuration.

  • For each group, configure the following properties:

    • Layer Mask: Select which layers receive this outline effect

    • Color: Set the outline color

    • Intensity: Adjust outline visibility strength

    • Blend Sphere Normal: Control how much spherical normals affect outline shape

    • Thickness: Define min/max thickness values and distance thresholds

    • Gradient: Set direction and range for gradient effects (optional)

    • Render Mode: Choose between Stencil Test and Single Pass rendering

  • Add multiple groups to apply different outline styles to different sets of objects.

Enjoying this package?

  • Give it a quick rating or leave a short review on the Unity Asset Store.

  • Your feedback helps us improve and add even more features!

Last updated