11 lines
207 B
GLSL
11 lines
207 B
GLSL
#version 450
|
|
|
|
uniform sampler2D tex;
|
|
in vec2 texCoord;
|
|
in vec4 fragmentColor;
|
|
out vec4 FragColor;
|
|
|
|
void main() {
|
|
FragColor = vec4(fragmentColor.rgb, texture(tex, texCoord).r * fragmentColor.a);
|
|
}
|