Search Unity

Node 'Collide with depth buffer' has broken 'Depth map' input for custom camera.

Discussion in 'Visual Effect Graph' started by Lex4art, Oct 13, 2021.

  1. Lex4art

    Lex4art

    Joined:
    Nov 17, 2012
    Posts:
    445
    For some reason in Unity 2022.1a11 and 2021.2b15 this node has grey inputs for 'Depth Buffer' and 'Color Buffer'; in Unity 2020.3 there are normal (red) inputs and it's possible to connect external depth map there...
    Is this a bug or this feature was deprecated?
    No way to connect depth map.png
     
  2. gabriel-delacruz

    gabriel-delacruz

    Unity Technologies

    Joined:
    May 19, 2021
    Posts:
    37
    Hi!
    Starting 2021.2, the type used for camera buffers is not a Texture anymore. The reason for this is that, depending on the platform, the underlying format can be either a Texture2D or a Texture2DArray. If the platform supports XR, even if it is not used by the application, format will be Texture2DArray; otherwise it will be Texture2D.
    This means that at the moment camera buffer slots are restricted to inputs coming from an actual camera, whether it is the main camera or a camera bound using the HDRP Camera Binder.
    We are aware that this restriction may affect some specific workflows and we are planning on providing an alternative.
    If you have any ideas or any feedback about this we will be happy to hear them.
    Thanks for your understanding!
     
    Lex4art, VladVNeykov and Vita- like this.