Scene Depth returning a flat color

I made a simple depth fog Fullscreen Shader in Shadergraph. I checked enabled on the render pipeline settings to write depth texture, but it keeps giving me a full flat color on the Game View while it seems to be kinda working on the Scene view. I don’t understand what I am doing wrong, I checked the math and It still giving me a flat color.