# Mix "Masked Material" and "Translucent Material"

**URL:** <https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928>\
**Category:** Asset Creation\
**Tags:** translucent, unreal-engine, masked, question\
**Created:** [June 8, 2018, 5:48am UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928 "2018-06-08T05:48:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Myth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jack\_Myth](https://forums.unrealengine.com/u/Jack_Myth)\
**Post date:** [June 8, 2018, 5:48am UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/1 "2018-06-08T05:48:10Z")

</div>

I have a question.  
If I can make a material that mix “Masked” and “Translucent”?  
For example:  
If the Alpha is higher than “Opacity Mask Clip Value” then the part of the material is “Masked”, So that the deepth or Light will be much better. Otherwise is “Translucent” ,so the edge of Material will be more soft.  
For example:

![243551-0.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/2/852a2344217ce87b9a8385c700b6e5e9ae733be5.jpeg)

The more useful place is: Hair can use it to provide soft edges. It may look better.

And, I know it may can’t be done with Material Editor. But what about HLSL? Or edit .usf directly?

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [June 8, 2018, 11:18am UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/2 "2018-06-08T11:18:39Z")

</div>

Split mesh into two sections with different materials, or use only translucent.

---

<div class="post-metadata">

**Author:** ![Jack\_Myth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jack\_Myth](https://forums.unrealengine.com/u/Jack_Myth)\
**Post date:** [June 8, 2018, 12:11pm UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/3 "2018-06-08T12:11:44Z")

</div>

Both solutions are not good.  
The split mesh is hard to create. and it’s opacity cannot be changed at runtime.  
The Translucent Material have many problems, such as Depth error, and sometimes the Translucent Material which totally Opacity can still be seen through, These are why I want to mix them up.

---

<div class="post-metadata">

**Author:** ![Umberto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Umberto](https://forums.unrealengine.com/u/Umberto)\
**Post date:** [June 8, 2018, 8:54pm UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/4 "2018-06-08T20:54:54Z")

</div>

The answer to the question is No

---

<div class="post-metadata">

**Author:** ![Jack\_Myth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jack\_Myth](https://forums.unrealengine.com/u/Jack_Myth)\
**Post date:** [June 8, 2018, 11:58pm UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/5 "2018-06-08T23:58:25Z")

</div>

This request must can be done. because my friend has done it in unity. Can UE4 edit shader directly?

---

<div class="post-metadata">

**Author:** ![WesleyNasray](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wesleynasray/32/1153835_2.png) [@WesleyNasray](https://forums.unrealengine.com/u/WesleyNasray)\
**Post date:** [August 6, 2020, 2:21pm UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/6 "2020-08-06T14:21:56Z")

</div>

You can use If node to replicate mask mode behaviour:

 ![309392-anotacao-2020-08-06-111314.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/2/48212615cf07bfaf6fe10241c21b125468769e23.png)

Basically the MaskMode sets opacity to 0 or 1 if value is greater or lower than the material’s OpacityMaskClip attribute.

I just needed this same result and realized this could be done.

---

<div class="post-metadata">

**Author:** ![Fisher007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fisher007](https://forums.unrealengine.com/u/Fisher007)\
**Post date:** [September 13, 2021, 1:38pm UTC](https://forums.unrealengine.com/t/mix-masked-material-and-translucent-material/426928/7 "2021-09-13T13:38:34Z")

</div>

This is sort of possible with the Oculus custom branch. It’s not dithered, so you don’t see dots and has proper sorting. But it doesn’t have smooth transition, have only a couple phases of translucency.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/c/3dc4399b92c65733a9dc0c24dec3e219589b71b4.jpeg "Masked material similar to translucent") ](https://www.youtube.com/watch?v=86mSbJypCL0)
