Search Unity

Feedback URP v12: Render Objects could allow custom render target.

Discussion in 'Universal Render Pipeline' started by bitinn, Sep 26, 2021.

  1. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    961
    Hi,

    It would be great if Render Objects (the built-in renderer feature) allows for custom render target like HDRP, not that I cannot roll my own renderer feature, but it seems like a good thing to have by default.

    (My use case: I am using Deferred render path, and need to render some objects separately to do some stencil tricks, but filtering these objects cause normal gbuffer to not be populated, there is no way for me to use Render Objects to render into normal buffer, even though I can select the Pass Index.)

    Thx!
     
    NotaNaN and Oxeren like this.
  2. AsaEx

    AsaEx

    Joined:
    May 19, 2022
    Posts:
    2
    You can inherit RenderObjectsPass and set your own RenderTarget in the Configure function, as the following code does.
    upload_2022-6-8_16-31-46.png