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

# Wireframe Shader

[**Wireframe Shader**](https://assetstore.unity.com/packages/vfx/shaders/wireframe-shader-181386?aid=1011lvgVb) is a comprehensive solution for rendering high-quality wireframe effects in Unity and includes three workflows for different platforms, pipelines, and production needs.

### 1. Classic Wireframe Rendering

A reliable and highly compatible method that utilizes pre-baked wireframe data stored within the mesh.

<figure><img src="https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fw5jKgTnTMpOKjj5Jy5Bb%2F42.png?alt=media&amp;token=c5ad4ec4-2080-4b59-9a90-ada6ac5083f4" alt=""><figcaption></figcaption></figure>

* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fsz0w5KGnjtXhLDwPGJ78%2Fpros.png?alt=media\&token=c62b47b6-10a6-49d0-8888-8e12e2c7bbc4) Supports all devices, including legacy mobile devices, WebGL, VR, consoles and PC.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fsz0w5KGnjtXhLDwPGJ78%2Fpros.png?alt=media\&token=c62b47b6-10a6-49d0-8888-8e12e2c7bbc4) Compatible with **Shader Graph**, [**Amplify Shader Editor**](https://assetstore.unity.com/packages/tools/visual-scripting/amplify-shader-editor-68570?aid=1011lvgVb) and custom hand-written shaders.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2FfBRa1vM4dK0wIvyy1uiQ%2Fcons.png?alt=media\&token=da829613-0c73-4826-a37c-e99bc53fb362) Requires generating a new mesh with wireframe data baked inside it.

### 2. Dynamic Wireframe Shader

A modern approach that generates the wireframe effect entirely on the GPU.

{% embed url="<https://www.youtube.com/watch?v=Zhk6c-qSJc8>" %}
[<mark style="color:$warning;">**Tokyo Street**</mark> <mark style="color:blue;">**by Art Equilibrium**</mark>](https://assetstore.unity.com/packages/3d/environments/urban/tokyo-street-228474?aid=1011lvgVb)
{% endembed %}

* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fsz0w5KGnjtXhLDwPGJ78%2Fpros.png?alt=media\&token=c62b47b6-10a6-49d0-8888-8e12e2c7bbc4) Wireframe effect is entirely calculated and rendered by a shader. No mesh generation, preprocessing or modification required.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fsz0w5KGnjtXhLDwPGJ78%2Fpros.png?alt=media\&token=c62b47b6-10a6-49d0-8888-8e12e2c7bbc4) Compatible with **Shader Graph**.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2FfBRa1vM4dK0wIvyy1uiQ%2Fcons.png?alt=media\&token=da829613-0c73-4826-a37c-e99bc53fb362) Doesn't support [**Amplify Shader Editor**](https://assetstore.unity.com/packages/tools/visual-scripting/amplify-shader-editor-68570?aid=1011lvgVb) and custom hand-written shaders.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2FfBRa1vM4dK0wIvyy1uiQ%2Fcons.png?alt=media\&token=da829613-0c73-4826-a37c-e99bc53fb362) Requires hardware support for tessellation.

####

### 3. Wireframe Texture Generation

Generate wireframe textures based on mesh UV.

<figure><img src="https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2F6t9cYhEZhaPXGRUhUMNO%2F3.png?alt=media&amp;token=da1090d8-e6c7-46b7-a89a-a4d14be3719a" alt=""><figcaption></figcaption></figure>

* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fsz0w5KGnjtXhLDwPGJ78%2Fpros.png?alt=media\&token=c62b47b6-10a6-49d0-8888-8e12e2c7bbc4) Being a common texture file, can be used with any material inside Unity, or in external Apps.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2Fsz0w5KGnjtXhLDwPGJ78%2Fpros.png?alt=media\&token=c62b47b6-10a6-49d0-8888-8e12e2c7bbc4) Works in editor and runtime.
* ![](https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2FfBRa1vM4dK0wIvyy1uiQ%2Fcons.png?alt=media\&token=da829613-0c73-4826-a37c-e99bc53fb362) Not all meshes may be suitable. Requires mesh with non-overlapping UV layouts.

###

### Which option should I use?

<table><thead><tr><th width="223.14996337890625" valign="top">Method</th><th valign="top">Best For</th><th valign="top">Requirements</th></tr></thead><tbody><tr><td valign="top"><sup><strong>Classic Wireframe Rendering</strong></sup></td><td valign="top"><sup>Maximum compatibility across all devices, render pipelines, and shader workflows.</sup></td><td valign="top"><sup>Generate a new mesh with wireframe data baked inside it.</sup></td></tr><tr><td valign="top"><sup><strong>Dynamic Wireframe Shader</strong></sup></td><td valign="top"><sup>Fast <strong>Shader Graph</strong> setup with no mesh preprocessing.</sup></td><td valign="top"><sup>Use <strong>Shader Graph</strong> and a tessellation-capable device.</sup></td></tr><tr><td valign="top"><sup><strong>Wireframe Texture Generation</strong></sup></td><td valign="top"><sup>Creating reusable wireframe textures for Unity materials or external apps.</sup></td><td valign="top"><sup>Use a mesh with non-overlapping UV layouts.</sup></td></tr></tbody></table>

### Choose your workflow

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center">Classic Wireframe Rendering</td><td><a href="https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2FoEuALnq2VZBicBGpUajR%2F40.png?alt=media&amp;token=8617f000-78af-4842-a06a-4a0f8614e64d">40.png</a></td><td><a href="/wireframe-shader/classic-wireframe-rendering/quick-start.md">Quick Start</a></td></tr><tr><td align="center"><p>Dynamic Wireframe </p><p>Shader</p></td><td><a href="https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2FUlUwpbxJwyClPLbr0I1q%2FScreenshot_3_3.png?alt=media&amp;token=2e0de141-55cb-4ea1-b73a-540172143434">Screenshot_3_3.png</a></td><td><a href="/wireframe-shader/dynamic-wireframe-shader/quick-start.md">Quick Start</a></td></tr><tr><td align="center">Wireframe Texture Generation</td><td><a href="https://2216819203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdyfl1Bb9QTpdePM8tyr%2Fuploads%2F6t9cYhEZhaPXGRUhUMNO%2F3.png?alt=media&amp;token=da1090d8-e6c7-46b7-a89a-a4d14be3719a">3.png</a></td><td><a href="/wireframe-shader/wireframe-texture-generation/editor-window.md">Editor Window</a></td></tr></tbody></table>
