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

grid_background_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: 37958319b44d9741161a10fca502e18ffc999102 (plain)
1
2
3
4
5
6
7

void main()
{
  fragColor = color;
  float scene_depth = texelFetch(depthBuffer, ivec2(gl_FragCoord.xy), 0).r;
  fragColor.a = (scene_depth == 1.0) ? 1.0 : 0.0;
}