This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/qglview/shaders/dsl_pass_2.frag
Бычков Андрей ba8bc27298 1
git-svn-id: svn://db.shs.com.ru/libs@1 a8b55f48-bf90-11e4-a774-851b48703e85
2015-02-28 21:28:53 +00:00

14 lines
276 B
GLSL

#version 120
uniform sampler2D t0, depth;
uniform vec3 backColor;
void main(void) {
//gl_FragColor.rgb=vec3(1,1,1);
if (texture2D(depth, gl_TexCoord[0].xy).x == 1.) {
gl_FragColor.rgb = backColor;
return;
}
gl_FragColor.rgb = texture2D(t0, gl_TexCoord[0].xy).rgb;
}