Original Post
How do I get the scene depth into a texture using GLSL? I've tried using a varying 'veiwVec' and dividing by far clip plane and I've tried gl_FragCoord.z, but no matter what I seem to get 'banding' or a plain white screen. I have a A8R8G8B8 texture that I'm encoding the float value to. cheers.