Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpu_shader_fx_depth_resolve.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c4e7cff2b0b9a69fc393f18d79f4e8d1b8136890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}