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