# Wireframe material

**URL:** <https://forums.unrealengine.com/t/wireframe-material/290007>\
**Category:** Rendering\
**Tags:** wireframe, edge, unreal-engine, question\
**Created:** [August 3, 2014, 2:10pm UTC](https://forums.unrealengine.com/t/wireframe-material/290007 "2014-08-03T14:10:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerofiftyone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zerofiftyone](https://forums.unrealengine.com/u/zerofiftyone)\
**Post date:** [August 3, 2014, 2:10pm UTC](https://forums.unrealengine.com/t/wireframe-material/290007/1 "2014-08-03T14:10:52Z")

</div>

Is there any way to create a material which will only draw the edges of a mesh, so as to create a [glowing wireframe effect?][1]

I’m currently using a workaround which involves using two meshes and applying different materials to each one. It looks like this:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/6/962dabc23ca9d8db3d8ebb7657ebe5cb89b95a04.png) ](https://i.imgur.com/8Zxopuc.png)

It sort of works, but I know it’s not the best solution. It also doesn’t allow me to apply the effect to terrain or brushes.

Does anyone know how to achieve this?

Cheers,

Ben

---

<div class="post-metadata">

**Author:** ![Roel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roel](https://forums.unrealengine.com/u/Roel)\
**Post date:** [August 3, 2014, 4:16pm UTC](https://forums.unrealengine.com/t/wireframe-material/290007/2 "2014-08-03T16:16:17Z")

</div>

You have a wireframe option in the material, but it will literally draw every triangle, and not just squares. The effect above on the terrain is really easily achievable by sampling a texture over the terrain and tile it so it alligns with the polygonal squares. You can put the square texture in a Lerp node as an alpha and than interpolate between white (1) and the color of your terrain.

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [August 4, 2014, 12:29am UTC](https://forums.unrealengine.com/t/wireframe-material/290007/3 "2014-08-04T00:29:30Z")

</div>

Is this what you want to achieve?

 ![11813-77a809b5816d31eb82a04f2c3f33c00c.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/f/d5fc9edbfd664582addf716eda3ebbfd1fc0dac6.png)

Second link to the picture: [https://imageshack.com/i/ezKL3Di6p](https://imageshack.com/i/ezKL3Di6p)

---

<div class="post-metadata">

**Author:** ![zerofiftyone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zerofiftyone](https://forums.unrealengine.com/u/zerofiftyone)\
**Post date:** [August 4, 2014, 2:37am UTC](https://forums.unrealengine.com/t/wireframe-material/290007/4 "2014-08-04T02:37:37Z")

</div>

Thanks for your answer. I had a feeling that the wireframe option existed somewhere but had trouble finding it earlier, so thanks. I shall look into the other method and see what results I can get.

---

<div class="post-metadata">

**Author:** ![zerofiftyone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zerofiftyone](https://forums.unrealengine.com/u/zerofiftyone)\
**Post date:** [August 4, 2014, 2:41am UTC](https://forums.unrealengine.com/t/wireframe-material/290007/5 "2014-08-04T02:41:09Z")

</div>

Thanks for the example! I’ll have a closer look at this in the morning (it’s 3am here at the moment :D). It looks like what I’m after though, so I’ll mark this as answered.

---

<div class="post-metadata">

**Author:** ![Juanma.elx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Juanma.elx](https://forums.unrealengine.com/u/Juanma.elx)\
**Post date:** [May 23, 2016, 2:44pm UTC](https://forums.unrealengine.com/t/wireframe-material/290007/6 "2016-05-23T14:44:32Z")

</div>

Hi there,

Maybe this could interesting for you.  
91612-
