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

gpencil_simple_mix_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: 2f4429a858f79bb8f2b589da8cd71b1145209556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
in vec4 uvcoordsvar;

out vec4 FragColor;

uniform sampler2D strokeColor;
uniform sampler2D strokeDepth;
void main()
{
  ivec2 uv = ivec2(gl_FragCoord.xy);
  float stroke_depth = texelFetch(strokeDepth, uv, 0).r;
  vec4 stroke_color = texelFetch(strokeColor, uv, 0).rgba;

  FragColor = stroke_color;
  gl_FragDepth = stroke_depth;
}