blob: 9aa2fdc37967387237f398c2164e192cf4d55408 (
plain)
1
2
3
4
5
6
7
|
void main()
{
float depth = texture(depthTex, uvcoordsvar.xy).r;
float depth_xray = texture(xrayDepthTex, uvcoordsvar.xy).r;
fragColor = vec4((depth < 1.0 && depth > depth_xray) ? opacity : 1.0);
}
|