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: e04cd7d33066641651265065a415731be7007534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
uniform sampler2D depthbuffer;
varying vec4 uvcoordsvar;

void main(void)
{
	float depth = texture2D(depthbuffer, uvcoordsvar.xy).r;

	/* XRay background, discard */
	if (depth >= 1.0) {
		discard;
	}

	gl_FragDepth = depth;
}