# Does anybody know how to render a shadow Renderpass

**URL:** <https://forums.unrealengine.com/t/does-anybody-know-how-to-render-a-shadow-renderpass/469570>\
**Category:** Rendering\
**Tags:** shadow, shadows-problem, shadow-problem, unreal-engine, question\
**Created:** [August 11, 2020, 11:06am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-render-a-shadow-renderpass/469570 "2020-08-11T11:06:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_393d311a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_393d311a](https://forums.unrealengine.com/u/anonymous_user_393d311a)\
**Post date:** [August 11, 2020, 11:06am UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-render-a-shadow-renderpass/469570/1 "2020-08-11T11:06:26Z")

</div>

Hi,

I am trying to render the Shadow pass we used to generate in Maya or similar applications in Production pipeline.  
Is there any way to get a Shadow through render pass or similar way.

Please do comment.

Regards  
P.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7313889c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7313889c](https://forums.unrealengine.com/u/anonymous_user_7313889c)\
**Post date:** [August 15, 2020, 5:40pm UTC](https://forums.unrealengine.com/t/does-anybody-know-how-to-render-a-shadow-renderpass/469570/2 "2020-08-15T17:40:45Z")

</div>

The closest way i know of is like they do on the ComposureFramework project.

With composure they get a **“shadow pass”** by first rendering the full MainPass and then another one with DynamicShadows off (in SceneCaptureComponent), then they get the difference in a PostProcess shader. This can introduce some artifacts due to different postprocess problems.

I once had to get the dynamic shadows of a scene camera as a mask for realtime AR compositing. I did it like that, and blending it like this:

 ![310274-captura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/5/735d001a3dd7628d7731ad9f2de90f3a409b206f.png)

I dont know if you could do it also with static shadows
