2020-02-22 15:38:54 +04:00

15 lines
259 B
GLSL
Executable File

precision highp float;
varying vec2 varTexcoord;
varying float varIntensity;
uniform sampler2D texture;
void main (void)
{
float f = texture2D(texture, varTexcoord.st, 0.0).a;
float v = varIntensity * f;
gl_FragColor = vec4(0, 0, 0, v);
}