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

gpu_shader_text_frag.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ff90ad4f21f6424a4363293b2f9703aa5d5513f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

flat in vec4 color_flat;
noperspective in vec2 texCoord_interp;
out vec4 fragColor;

uniform sampler2D glyph;

void main()
{
	// input color replaces texture color
	fragColor.rgb = color_flat.rgb;

	// modulate input alpha & texture alpha
	fragColor.a = color_flat.a * texture(glyph, texCoord_interp).r;
}