> For the complete documentation index, see [llms.txt](https://graphicscat.gitbook.io/graphicscat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://graphicscat.gitbook.io/graphicscat/documentation/geometry-outline.md).

# Geometry Outline

### Overview <a href="#kotm-1756718283234" id="kotm-1756718283234"></a>

* 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 <a href="#id-79ck-1756718295657" id="id-79ck-1756718295657"></a>

* 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

<figure><img src="/files/qlHpwVKSr9K3kf03Zdgt" alt=""><figcaption></figcaption></figure>

### Visual Features <a href="#t17h-1756718334378" id="t17h-1756718334378"></a>

* Custom Colors: Use any RGBA color and intensity for outlines
* Dynamic Thickness: Define min/max thickness with distance-based interpolation

<div align="center"><figure><img src="/files/vIUjDfqVpX6kUxG1BsJ9" alt=""><figcaption></figcaption></figure></div>

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

<figure><img src="/files/2PeI3nF7tHYB3bhMs6Qx" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/zBDq2rDESTx5qWjgdy1y" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/6obuavlgg9D603UfPLWr" alt=""><figcaption></figcaption></figure>

### Usage Instructions <a href="#myao-1756718627607" id="myao-1756718627607"></a>

#### Basic Setup <a href="#ucww-1756718627609" id="ucww-1756718627609"></a>

* Drag and drop GeometryOutline.prefab from the Prefabs folder into your scene.
* The prefab includes a GeometryOutlineManager component, which handles all outline rendering.

<figure><img src="/files/fjqbPBdFk8VPfUkZ5RQG" alt=""><figcaption></figcaption></figure>

#### Configuring Outline Groups <a href="#dfgb-1756718656193" id="dfgb-1756718656193"></a>

* 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? <a href="#zzrr-1756996921311" id="zzrr-1756996921311"></a>

* 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!
* [Review on Unity Asset Store](https://assetstore.unity.com/packages/slug/330275)
