# Get outline of mask

**URL:** <https://forums.unrealengine.com/t/get-outline-of-mask/473546>\
**Category:** Rendering\
**Tags:** outline, border, unreal-engine, mask, question\
**Created:** [October 26, 2020, 10:37pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546 "2020-10-26T22:37:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JakBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakBB](https://forums.unrealengine.com/u/JakBB)\
**Post date:** [October 26, 2020, 10:37pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546/1 "2020-10-26T22:37:45Z")

</div>

Hello I was wondering if there is any way to get the outline of a computed mask in a material (in my case a slope mask).  
I tried the ComputeFilterWidth node but the results are very noisy.  
If there was a way to blur that mask or shift it around that could work, but since this mask is calculated on the go (idk how these types of masks are called) it has no UVs.  
I tried already to simply shift the slope threshold and blend by difference but this creates an outline with a lot of width variation

---

<div class="post-metadata">

**Author:** ![JakBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakBB](https://forums.unrealengine.com/u/JakBB)\
**Post date:** [October 27, 2020, 12:50pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546/2 "2020-10-27T12:50:42Z")

</div>

No one? Please help

---

<div class="post-metadata">

**Author:** ![CrispClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crispclover/32/1140157_2.png) [@CrispClover](https://forums.unrealengine.com/u/CrispClover)\
**Post date:** [October 31, 2020, 5:07pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546/3 "2020-10-31T17:07:05Z")

</div>

how are you generating that slope mask? can you show me the material graph?

---

<div class="post-metadata">

**Author:** ![JakBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakBB](https://forums.unrealengine.com/u/JakBB)\
**Post date:** [November 1, 2020, 4:10pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546/4 "2020-11-01T16:10:05Z")

</div>

Using the slope mask function

---

<div class="post-metadata">

**Author:** ![CrispClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crispclover/32/1140157_2.png) [@CrispClover](https://forums.unrealengine.com/u/CrispClover)\
**Post date:** [November 1, 2020, 4:24pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546/5 "2020-11-01T16:24:02Z")

</div>

Let me know if this is what you needed. 🙂

 ![320790-outline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/6/2d63b98bb18166c5f51aa4f4d7a740da48deb7cf.png)

---

<div class="post-metadata">

**Author:** ![JakBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakBB](https://forums.unrealengine.com/u/JakBB)\
**Post date:** [November 1, 2020, 4:55pm UTC](https://forums.unrealengine.com/t/get-outline-of-mask/473546/6 "2020-11-01T16:55:06Z")

</div>

Yes this works exactly as intended

[https://i.imgur.com/44e9F93.png](https://i.imgur.com/44e9F93.png)

Thank you so much!
