# Masked shader complexity

**URL:** <https://forums.unrealengine.com/t/masked-shader-complexity/458274>\
**Category:** Rendering\
**Tags:** unreal-engine, masked, Rendering, Shaders, question\
**Created:** [November 11, 2019, 10:29am UTC](https://forums.unrealengine.com/t/masked-shader-complexity/458274 "2019-11-11T10:29:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rangemotions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rangemotions](https://forums.unrealengine.com/u/rangemotions)\
**Post date:** [November 11, 2019, 10:29am UTC](https://forums.unrealengine.com/t/masked-shader-complexity/458274/1 "2019-11-11T10:29:14Z")

</div>

Can you explain why the hidden part of geometry is heavy to compute? Even if “Mask material only in early Z-pass” is checked.

[http://dl4.joxi.net/drive/2019/11/11/0005/1931/378763/63/6b087df1c3.jpg](http://dl4.joxi.net/drive/2019/11/11/0005/1931/378763/63/6b087df1c3.jpg)

---

<div class="post-metadata">

**Author:** ![Rijke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rijke](https://forums.unrealengine.com/u/Rijke)\
**Post date:** [November 15, 2019, 4:29pm UTC](https://forums.unrealengine.com/t/masked-shader-complexity/458274/2 "2019-11-15T16:29:08Z")

</div>

Yea I agree, the PS cost should not be affected by the masked portion if you are using the “Mask material only in early Z-pass” option. Did you make sure to restart your editor and maybe invalidate+recompile all shaders? You might also want to ensure that your prepass is rendering everything including movable objects.
