Fixed the depth buffer issues. Believe I've fixed the distortion correction shader values.