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

gpencil_background_frag.glsl « shaders « gpencil « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18803bfa3fadcf2829f6f486d4f6db5d05baffaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
out vec4 FragColor;

uniform sampler2D strokeColor;
uniform sampler2D strokeDepth;

void main()
{
  ivec2 uv = ivec2(gl_FragCoord.xy);

  gl_FragDepth = texelFetch(strokeDepth, uv, 0).r;
  FragColor = texelFetch(strokeColor, uv, 0);
}