shaderTextureDepth.frag 282 Bytes
Newer Older
1 2
// ShaderTextureDepth::fragmentShaderText

3
PRECISION;
4 5 6 7 8 9 10
VARYING_FRAG vec2 texCoord;
uniform sampler2D textureUnit;
uniform sampler2D textureDepthUnit;
FRAG_OUT_DEF;
void main()
{
    gl_FragDepth = texture2D(textureDepthUnit,texCoord).r;
11
	FRAG_OUT = texture2D(textureUnit,texCoord);
12
}