Does anybody know how to render a shadow Renderpass

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
Devank P.

1 Like

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:

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