alelievr / HDRP-Custom-Passes

A bunch of custom passes made for HDRP
MIT License
1.25k stars 136 forks source link

CopyBuffer from different Camera #36

Closed ArieLeo closed 7 months ago

ArieLeo commented 2 years ago

Is it possible to Copy Color buffer from different camera to be used for RenderTexture? using RenderFromCamera seems glitchy or is this a bug?

alelievr commented 7 months ago

RenderFromCamera only works for rendering specific buffers (depth, normal, motion vectors, etc.) from a separate point of view. Rendering the Lit color will not work as the lighting structures are shared with the main camera (or you need to render a view contained within the view of your main camera). To render lit scenes in a RenderTexture, currently, the only solution is to use multiple cameras but it has a very high performance cost.