# How to cast dynamic shadows ignoring Material Opacity?

**URL:** <https://forums.unrealengine.com/t/how-to-cast-dynamic-shadows-ignoring-material-opacity/316036>\
**Category:** Rendering\
**Tags:** ignore, unreal-engine, Rendering, Lighting, question\
**Created:** [April 23, 2015, 12:48am UTC](https://forums.unrealengine.com/t/how-to-cast-dynamic-shadows-ignoring-material-opacity/316036 "2015-04-23T00:48:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creasso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@creasso](https://forums.unrealengine.com/u/creasso)\
**Post date:** [April 23, 2015, 12:48am UTC](https://forums.unrealengine.com/t/how-to-cast-dynamic-shadows-ignoring-material-opacity/316036/1 "2015-04-23T00:48:27Z")

</div>

Hi…

I worked on an “autohide” material to use on top walls of my project:

 ![39801-autohide0.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/4/c04442cdbb64e411e43ef25b524a1612844bb7e9.jpeg)

It works, but I’m not finding a way to make the lights “ignore” the material opacity when it’s 0, if I go behind the wall while the material is with Opacity 1 it’s all OK…

 ![39802-autohide1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/a/53aabeb3e2ac119f973eb4ed431097c1be65ceb6.jpeg)

But if I rotate my camera making the walls “autohide”, on move the character the object is ignored:

 ![39803-autohide2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/8/aa870c0ecc36847e6bda61f30d7b64ec720d8cfb.jpeg)

I’ve tried to switch the CastHiddenShadows, but looks like it just affects the “visibleingame” primitives, is there any way to solve this than not place a game hidden object inside my walls just to cast shadows when the wall vanishes?

Thank you.
