# 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="https://1015306288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5TKI5zdwMx1bXFiVnBUe%2Fuploads%2FNk1TNuVd4gmGZmAfFEui%2Fimage.png?alt=media&#x26;token=ee61bf26-db26-4c26-a02a-267f8582bdff" 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="https://1015306288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5TKI5zdwMx1bXFiVnBUe%2Fuploads%2FdQe0tRPFk0ClNUflYg1r%2Fimage.png?alt=media&#x26;token=27c81351-29cc-4673-8f6b-9b4997e8c80d" alt=""><figcaption></figcaption></figure></div>

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

<figure><img src="https://1015306288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5TKI5zdwMx1bXFiVnBUe%2Fuploads%2FM85FbwDIkuyDk4XaaVns%2Fimage.png?alt=media&#x26;token=cc4fe12c-e680-4530-8ee7-ee236f8b431a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1015306288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5TKI5zdwMx1bXFiVnBUe%2Fuploads%2FtvapK7Xo9WAVDT0hTbIh%2Fimage.png?alt=media&#x26;token=f977e6fb-bc57-412f-b199-1562dc47181d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1015306288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5TKI5zdwMx1bXFiVnBUe%2Fuploads%2F4naA1WafGwS6so4bRvN2%2Fimage.png?alt=media&#x26;token=e69da249-7667-4cb2-907a-323f797e2273" 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="https://1015306288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5TKI5zdwMx1bXFiVnBUe%2Fuploads%2FQWApOx2NAwwBlj91ghpp%2Fimage.png?alt=media&#x26;token=4917a55b-9a98-4738-acf6-11a16565aa2f" 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://graphicscat.gitbook.io/graphicscat/documentation/geometry-outline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
