Search Unity

_LastCameraDepthTexture doesn't exist?

Discussion in 'Shaders' started by spiraboo, May 18, 2017.

  1. spiraboo

    spiraboo

    Joined:
    Apr 19, 2017
    Posts:
    3
    In the documentation it reads:
    I tried using _CameraDepthTexture and that works fine, but when I tried to use _LastCameraDepthTexture Unity complains that it is an undeclared identifier. I downloaded the build in shaders package from unity and grepped around the CGIncludes files and failed to find it. Do I have to include something special to use it or has it been decommissioned without anyone updating the documentation? (I'm using Unity 5.5.1, the 5.6 documentation still says this.)
     
  2. spiraboo

    spiraboo

    Joined:
    Apr 19, 2017
    Posts:
    3
    Never mind! I forgot to declare it inside my shader. Sorry for pointless posting!