Download

How to capture DepthMap without SceneCapture2D?

I need to capture several depthmaps every frame. At now i made this by SceneCapture2D with “SceneDepth in R”. But performance of SceneCapture2D is totally unacceptable, it’s runs full deferred path with all g-buffer, lighting, posts and other heavy stuff.
Is it possible to run fast lightweight depthmap pass like one that engine use for shadowmaps generation? In unity i just need to set replacement shader and run camera.Render(). I’m try to dive into unreal sources but it’s to hard for me now, i even don’t know where to look.