# How to create Blurry Edge on Mesh?

**URL:** <https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124>\
**Category:** Studio\
**Tags:** effect-help, studio-tutorials\
**Created:** [November 8, 2022, 11:17am UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124 "2022-11-08T11:17:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ytheodore](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ytheodore/32/207_2.png) [@Ytheodore](https://forum.deepar.ai/u/Ytheodore)\
**Post date:** [November 8, 2022, 11:17am UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124/1 "2022-11-08T11:17:43Z")

</div>

I was having difficulties when creating morphing giant head filter, I thought this was going to be easy just scale up the mesh to be added to shape blend. Now the head is large but I needed the shape to be smooth sort of like blurry.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/e5686727c86cdd7d3033670e7fb06afc6b48c014.jpeg)

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [November 8, 2022, 3:16pm UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124/2 "2022-11-08T15:16:20Z")

</div>

You can check the files in our beauty template, we typically use a head/face mesh with a bit of a fan around it so that the background around the head gets morphed as well to avoid strange edges.

You can also try simply adjusting the alpha mask to make the edges more or less transparent.

Best  
Jelena

---

<div class="post-metadata">

**Author:** ![Ytheodore](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ytheodore/32/207_2.png) [@Ytheodore](https://forum.deepar.ai/u/Ytheodore)\
**Post date:** [November 10, 2022, 2:06am UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124/3 "2022-11-10T02:06:34Z")

</div>

Hello Jelena,  
I still have some difficulties making the filter works, I have been working on shader wizard but I have no Idea how the code inside Fragment.SC works  
And I haven’t found a tutorial in depth about the coding on shader wizard

Regards,  
Theo

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [November 10, 2022, 12:40pm UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124/4 "2022-11-10T12:40:39Z")

</div>

DeepAR uses bgfx library in the background, which means it uses their variant of GLSL shaders. You can read more about that on bgfx shader docs here: [Tools — bgfx 1.118.8367 documentation](https://bkaradzic.github.io/bgfx/tools.html#shader-compiler-shaderc)

I would say your effect looks fairly good. Which shader are you using? Our pre-made simple morph shader might be slightly better

---

<div class="post-metadata">

**Author:** ![Ytheodore](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ytheodore/32/207_2.png) [@Ytheodore](https://forum.deepar.ai/u/Ytheodore)\
**Post date:** [November 10, 2022, 2:59pm UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124/5 "2022-11-10T14:59:51Z")

</div>

Hey Jelena,  
I still have some questions :

1. I Still haven’t figured out how my filter should work, it doesn’t look natural
2. Now that you mention about pre-made simple morph shader where can I find that? what is the name of the shader ?

I Attached my filter looks below, I wanted it to have a blurry edge and the morph really looks bad

Thank you so much for the help

 ![Screen Shot 2022-11-10 at 22.52.57.png](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/7b7104b56d47e5bcbb23d080b54cb17fa58d4397.jpeg)

Best,  
Theo

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [November 10, 2022, 3:04pm UTC](https://forum.deepar.ai/t/how-to-create-blurry-edge-on-mesh/124/6 "2022-11-10T15:04:54Z")

</div>

Could you share your .deeparproj folder please. But here are the shader files.  
[simple\_morph.zip](https://forum.deepar.ai/uploads/short-url/5C2H7q10WHNW7cEhVbcOfrAishQ.zip) (3.3 KB)
