Search Unity

Question Need to read _CameraGBufferTexture2 to get screen normals in Shader Graph

Discussion in 'Shader Graph' started by Pheck, Nov 29, 2020.

  1. Pheck

    Pheck

    Joined:
    Jul 9, 2009
    Posts:
    225
    I have a transparent shader that needs to read the scene depth and the scene normal.
    I can already correctly use the scene depth, but no matter what I try, I can seem to get access to _CameraGBufferTexture2 to extract the scene normal info.

    Has anyone successfully done this in a shader graph?
    I would really appreciate your help if so.
     
  2. KYL3R

    KYL3R

    Joined:
    Nov 16, 2012
    Posts:
    135
    Did you get it eventually? I'm knee deep into custom passes and custom buffers, but I really just want to read the
    _CameraGBufferTexture2 in a later pass...