Files
test/source/blender/gpu/shaders/gpu_shader_fx_depth_resolve.glsl
Mike Erwin f6ffe12ddb OpenGL: convert old texture2D calls in FX shaders
And one texture1D call.
2017-05-19 11:09:12 -04:00

16 lines
221 B
GLSL

uniform sampler2D depthbuffer;
in vec4 uvcoordsvar;
void main(void)
{
float depth = texture(depthbuffer, uvcoordsvar.xy).r;
/* XRay background, discard */
if (depth >= 1.0) {
discard;
}
gl_FragDepth = depth;
}