blob: 3389fd7e964a75535595a581482a81bddeb9acd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#version 330 core
in vec2 TexCoords;
layout(location = 0, index = 0) out vec4 color;
layout(location = 0, index = 1) out vec4 alphaMask;
uniform sampler2D mask;
uniform vec3 textColor;
void main()
{
alphaMask = vec4(texture(mask, TexCoords).rgb, 1.);
color = vec4(textColor, 1.);
}
|