# Need Help with Decal Projection leaking

**URL:** <https://forums.unrealengine.com/t/need-help-with-decal-projection-leaking/1636800>\
**Category:** Rendering\
**Tags:** unreal-engine, Scripting, Shaders, Global-Shaders\
**Created:** [January 23, 2024, 3:33pm UTC](https://forums.unrealengine.com/t/need-help-with-decal-projection-leaking/1636800 "2024-01-23T15:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGUMINGUUU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GGUMINGUUU](https://forums.unrealengine.com/u/GGUMINGUUU)\
**Post date:** [January 23, 2024, 3:33pm UTC](https://forums.unrealengine.com/t/need-help-with-decal-projection-leaking/1636800/1 "2024-01-23T15:33:31Z")

</div>

Hello,  
There 2 things I’m trying to achieve ⬇

1. Trying to use a cubemap ( fire-damange textured ) with decals
2. Trying to show enemy awareness region.

For the first case, I already made a world projection which has rotation and translation feature which could be used with BP to get the orientation of the bomb.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/b/a7b8d177e5f33e866acda956d31b791d20477773.png)  
this is what it looks like  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/4/6440a0aeda39df293f98708067d8775e48b6ae3c.jpeg)

however as you could see there are two major issues  
**1. decal projection is leaking through walls.**  
**2. back faces also getting.**

For the second case I plan on using the method above as basically both are same.

Now I did not came across an article which clearly describe possible fixes.

_One of the things I could ever imagine is really making a custom global shader which will render the “Shadow Pass” it could be either Cascaded shadows or Distancefield Shadows. I don’t really need to do it for whole scene, Only 100 m near player could be enough ; then pass that one at material editor with render target and use it as a mask at the opacity of the decal._

Could anyone help me in this matter? I’m pretty new at using decal but I do wanna try as best as possible.
