# is alpha broken with screenposition ?

**URL:** <https://forums.unrealengine.com/t/is-alpha-broken-with-screenposition/485315>\
**Category:** Rendering\
**Tags:** shadow, alpha, Shadows, unreal-engine, masked, question\
**Created:** [June 24, 2021, 7:12pm UTC](https://forums.unrealengine.com/t/is-alpha-broken-with-screenposition/485315 "2021-06-24T19:12:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markmze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@markmze](https://forums.unrealengine.com/u/markmze)\
**Post date:** [June 24, 2021, 7:12pm UTC](https://forums.unrealengine.com/t/is-alpha-broken-with-screenposition/485315/1 "2021-06-24T19:12:19Z")

</div>

Hi everyone,  
it seems that when using a masked material and adding a screenposition for UVs of the texture, the shadow gets broken !  
Let’s say I do this on a plane, then the shadow will be squared. If I remove the screenposition for the uvs, the shadow takes the shape of my alpha for opacity.  
Any idea why ? Is this normal for you or is it an issue in the engine ?  
Thanks a lot

---

<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 25, 2021, 7:40pm UTC](https://forums.unrealengine.com/t/is-alpha-broken-with-screenposition/485315/2 "2021-06-25T19:40:57Z")

</div>

Because in shadow depth pass screen position becomes something different, as shadow depth view is renderer from point other than view. You can use shadow pass switch material expression to fix that.
