# How to make this mask in a material ?

**URL:** <https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765>\
**Category:** Rendering\
**Tags:** opacity-mask, unreal-engine, mask, masked\
**Created:** [October 21, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765 "2024-10-21T14:41:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Odd\_Way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Odd\_Way](https://forums.unrealengine.com/u/Odd_Way)\
**Post date:** [October 21, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765/1 "2024-10-21T14:41:29Z")

</div>

Hello,

Is it possible to make this kind of mask inside a standard material please ? I tried with Fresnel but it only works on a simple sphere…  
(Image 1 : the mesh, Image 2 : Fresnel, Image 3 : What i’m looking for)

 ![Forum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/f/c3fd74866cdd85574a03e8ea1ccd55416650b9e3.jpeg)

---

<div class="post-metadata">

**Author:** ![Odd\_Way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Odd\_Way](https://forums.unrealengine.com/u/Odd_Way)\
**Post date:** [October 24, 2024, 8:45am UTC](https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765/2 "2024-10-24T08:45:04Z")

</div>

up

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [October 24, 2024, 9:18am UTC](https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765/3 "2024-10-24T09:18:28Z")

</div>

try some of the diatance field functions. not sure if there are self occluding ones, but this should be low res enough to give this sorta look.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [October 24, 2024, 1:29pm UTC](https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765/4 "2024-10-24T13:29:45Z")

</div>

To get this exact effect, you’d need a distance field to only the outer edge of the mesh. This is possible but not trivial to create. The best way I know of to generate this is the jump flood algorithm.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [October 24, 2024, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-make-this-mask-in-a-material/2078765/5 "2024-10-24T14:05:18Z")

</div>

yeh. this is basicly interior shading combined with fresnel. you’d need a smooth distance field normal per pixel, invert it or render backfacing and apply the fresnel to that. that’s what i can visualize in the back of my head.
