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

workbench_merge_infront_frag.glsl « shaders « workbench « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae564435258d4893ba9d9d16b579cb0e32ec3390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

void main()
{
  float depth = texture(depthBuffer, uvcoordsvar.st).r;
  /* Fix issues with Intel drivers (see T80023). */
  fragColor = vec4(0.0);
  /* Discard background pixels. */
  if (depth == 1.0) {
    discard;
  }
  /* Make this fragment occlude any fragment that will try to
   * render over it in the normal passes. */
  gl_FragDepth = 0.0;
}