Rendering Shadowmask from Scene View to Camera

Hello!

I can’t seem to figure out how to render the shadow mask to a camera view so that I can record it using Unity’s Recorder tool. In a nutshell, I need to capture shadow mask frames through Unity’s Recorder and save it as an MP4 file, which will be used in a computer vision task. Any leads to how this can be done are greatly appreciated!

To further generalize the question, is it possible (and how) to record different scene views (directionality, shadow mask, albedo, etc)?

In the picture attached, I can properly get the camera depth already. But I’m not sure how to get the shadow mask in any way.

Bumping this one up.