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: dd54e38c3d0f7ba2f1baa18614d83a29b202fa31 (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;
}