Hey, someone else has the exact problem like me. I’m using DrawMeshInstancedIndirect and need to sample depth in my shader. _CameraDepthTexture seems to be blank though. Are the rules different when using DrawMeshInstancedIndirect since it uses compute shaders? I know how to sample depth in a normal shader.
My water voxels are rendered by Graphics.DrawMeshInstancedIndirect and I would like to sample _CameraDepthTexture in the shader.
For regular standard meshes (like the sphere below), it is OK.