Search Unity

[URP] Is Camera.SetTargetBuffers supposed to work in URP

Discussion in 'Universal Render Pipeline' started by stephero, Jun 1, 2022.

  1. stephero

    stephero

    Joined:
    Feb 8, 2016
    Posts:
    123
    Hello,

    I am trying to specify some output RenderBuffers (color & depth) on a camera using the Camera.SetTargetBuffers function. It works fine with the built-in pipeline, but I don't manage to make it work with URP.

    Is it supposed to work? I cannot find any info about this potential limitation in the documentation.

    If not, is there an alternative to output a camera to a color buffer and a depth buffer?

    Thanks!
     
    Zebadiah and sewy like this.
  2. ModLunar

    ModLunar

    Joined:
    Oct 16, 2016
    Posts:
    374
    I'm wondering the same thing, anyone know?
     
  3. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    727
    wondering the same. @aleksandrk?

    if not, what is the alternative? I need to specify both the color and depth texture.