14 lines
228 B
Plaintext
14 lines
228 B
Plaintext
|
#version 330 core
|
||
|
in vec2 texcoords;
|
||
|
out vec4 color;
|
||
|
|
||
|
uniform sampler2D image;
|
||
|
uniform vec3 spriteColor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
color = vec4(spriteColor, 1.f) * texture(image, texcoords);
|
||
|
|
||
|
if (color.a <= 0.1f)
|
||
|
discard;
|
||
|
}
|