# How do i create texture with border in material ?

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-texture-with-border-in-material/452802>\
**Category:** Rendering\
**Tags:** border, unreal-engine, UE4, question\
**Created:** [July 25, 2019, 7:20am UTC](https://forums.unrealengine.com/t/how-do-i-create-texture-with-border-in-material/452802 "2019-07-25T07:20:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c35de84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c35de84](https://forums.unrealengine.com/u/anonymous_user_0c35de84)\
**Post date:** [July 25, 2019, 7:20am UTC](https://forums.unrealengine.com/t/how-do-i-create-texture-with-border-in-material/452802/1 "2019-07-25T07:20:34Z")

</div>

I would like to create the texture with border in the material as shown below. I also want to change the border color and thickness with the parameter.

 ![283234-material.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/7/1977d03b329ef56dd8cc948e585511799d0542dd.png)

I tried with lerp but it’s hiding some part of the texture.

---

<div class="post-metadata">

**Author:** ![HarryHighDef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryHighDef](https://forums.unrealengine.com/u/HarryHighDef)\
**Post date:** [July 25, 2019, 8:19am UTC](https://forums.unrealengine.com/t/how-do-i-create-texture-with-border-in-material/452802/2 "2019-07-25T08:19:28Z")

</div>

Scale UV by center may be what you are looking for. You’ll then have to make sure the border is a flat texture

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c35de84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c35de84](https://forums.unrealengine.com/u/anonymous_user_0c35de84)\
**Post date:** [July 25, 2019, 11:54am UTC](https://forums.unrealengine.com/t/how-do-i-create-texture-with-border-in-material/452802/3 "2019-07-25T11:54:58Z")

</div>

Tried this way.

 ![283257-scale-uv.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/3/7d39977652057337eccb1423ac1389165a7b155a.jpeg)
