# Always draw masked material particle in front of other

**URL:** <https://forums.unrealengine.com/t/always-draw-masked-material-particle-in-front-of-other/391910>\
**Category:** Rendering\
**Tags:** sorting, order, unreal-engine, masked, particle, question\
**Created:** [April 25, 2017, 8:57pm UTC](https://forums.unrealengine.com/t/always-draw-masked-material-particle-in-front-of-other/391910 "2017-04-25T20:57:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luos/32/918700_2.png) [@Luos](https://forums.unrealengine.com/u/Luos)\
**Post date:** [April 25, 2017, 8:57pm UTC](https://forums.unrealengine.com/t/always-draw-masked-material-particle-in-front-of-other/391910/1 "2017-04-25T20:57:31Z")

</div>

using 4.11, if this is a thing in a later version pray do tell.

So I have two particle systems (but same occurs when using one particle system and two emitters regardless of order) both have a masked-material based effect.  
(can be sprite or mesh, preferable any combination)

I want one of the masked sprite/meshes to ALWAYS draw on top of the other.  
As this is not a translucency thing and I cant find any other way to sort the order… what can I do?

Note: I dont want the sprite/mesh to draw on top of EVERYTHING, just on top of the other.

regards,

silly old luos.

edit: gif of the situation. I want that orb to always be drawn on top.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/7/d57fe11e7c37917c417e95bfd5b4e27986fae487.gif)

---

<div class="post-metadata">

**Author:** ![hippowombat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hippowombat/32/906590_2.png) [@hippowombat](https://forums.unrealengine.com/u/hippowombat)\
**Post date:** [April 25, 2017, 9:25pm UTC](https://forums.unrealengine.com/t/always-draw-masked-material-particle-in-front-of-other/391910/2 "2017-04-25T21:25:56Z")

</div>

You could do like a distance field mask; the emitter that needs to render on top needs to be a mesh emitter and affect distance field lighting, and the other emitter can be a sprite or a mesh, but you’d need to set up an opacity mask lerp with the alpha being distance field info, like this:

[http://i.imgur.com/2Lx18yg.png](http://i.imgur.com/2Lx18yg.png)

Sorry for the crude image, I’m at work and have paint to work with lol.

---

<div class="post-metadata">

**Author:** ![hippowombat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hippowombat/32/906590_2.png) [@hippowombat](https://forums.unrealengine.com/u/hippowombat)\
**Post date:** [April 25, 2017, 9:32pm UTC](https://forums.unrealengine.com/t/always-draw-masked-material-particle-in-front-of-other/391910/3 "2017-04-25T21:32:04Z")

</div>

Either that, or do a camera-object opacity mask lerp using DrawLine -3D on the emitter that doesn’t need to be rendered on top.
