Search Unity

Draw hidden/disabled object to RenderTexture

Discussion in 'High Definition Render Pipeline' started by DuvE, Dec 6, 2021.

  1. DuvE

    DuvE

    Joined:
    May 22, 2016
    Posts:
    169
    Hi,

    How can I draw hidden/culled objects from Camera view to a RenderTexture. I tried using CustomPass and "CustomPassUtils.DrawRenderers", as well as "CustomPassUtils.RenderFromCamera". But if an object is not rendered by the camera, it won't be drawn.

    Yes, it is possible to just set the original material opacity to 0 and use "overrideMaterial:", but it won't work if there are too many objects with different materials each.