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: 1654d3bb0164db9c1453f6e9577cf7bc1fd3e286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

flat in vec4 color_flat;
noperspective in vec2 texCoord_interp;
out vec4 fragColor;
#define texture2D texture

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 * texture2D(glyph, texCoord_interp).r;
}