When I using
var DepthTexture = Shader.GetGlobalTexture(“_CameraDepthTexture”);
to get depthtexture, in scene view it works fine, here is what I got from unity:
And I Visualize it with VFX:
But when it goes to game view, I got:
And my VFX totally Black with a map with no depth data.
And here is how I manmanipulate depth Texture in vfx:
So, it confused that worked in scene view but not in game view, Why?



