# how can I make a solid wireframe material

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846>\
**Category:** Rendering\
**Tags:** wireframe, unreal-engine, Layers, question\
**Created:** [July 2, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846 "2015-07-02T15:31:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thumper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Post date:** [July 2, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/1 "2015-07-02T15:31:26Z")

</div>

I’ve found the wireframe toggle on the materials. But when I toggle this the material is see-through except the wireframe. I would like the background solid as well (just a different color or material). I’ve looked into layered materials but when making attribute values I cannot find the wireframe toggle anymore. Dumping this into a material with wireframe toggle activated just turns the plugged in material translucent as well (except where the wireframe is). Whats the trick for this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3221808d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3221808d](https://forums.unrealengine.com/u/anonymous_user_3221808d)\
**Post date:** [July 2, 2015, 5:46pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/2 "2015-07-02T17:46:13Z")

</div>

Except for doing some really deep hlsl coding (I don’t think the required functionality for this would be in the material editor but i could be wrong) the best I know of is to have a UV map with non-overlapping UVs and export a texture mask of them for use in an engine material. This is custom per mesh per material.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [July 3, 2015, 11:54am UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/3 "2015-07-03T11:54:46Z")

</div>

For simpley object like Box, you can use this shader tron-like glowing effect.

> **[YouTube](https://www.youtube.com/watch?v=)**
>
> Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3221808d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3221808d](https://forums.unrealengine.com/u/anonymous_user_3221808d)\
**Post date:** [May 23, 2016, 5:25pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/4 "2016-05-23T17:25:57Z")

</div>

This would only work for viewing in the editor. Real time, game materials don’t have access to this information/buffer as far as i know.

---

<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 24, 2016, 8:10am UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/5 "2016-05-24T08:10:06Z")

</div>

I guess this is for debugging purpose. In my case, the lead artist of the studio require this for mesh edges analysis.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3221808d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3221808d](https://forums.unrealengine.com/u/anonymous_user_3221808d)\
**Post date:** [May 24, 2016, 2:48pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/6 "2016-05-24T14:48:50Z")

</div>

For sure, it’s a valuable tool in editor for debugging normal/edge issues.

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [June 13, 2016, 7:45pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-solid-wireframe-material/323846/7 "2016-06-13T19:45:54Z")

</div>

what you can do is create a new uv channel, and use a per face mapping. and use a simple black box with a white stroke as color.  
it should do the trick
