Modifying Color Alpha Based On Distance With Camera in Frag Shader (UNITY 3D) I have the following shader code: