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