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

xray_fade_frag.glsl « shaders « overlay « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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);
}