Search Unity

How to get and sample CameraDepthTexture in compute shader?

Discussion in 'Shaders' started by Den_Cai, Oct 25, 2020.

  1. Den_Cai

    Den_Cai

    Joined:
    Jan 3, 2018
    Posts:
    1
    How to get and sample CameraDepthTexture in compute shader?
    I want to calculate some data based on depthbuffer in compute shader.
    By the way, I am using built-in pipeline. I dont know if that matters.
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553