prosperon/source/shaders/animspritefrag.glsl

14 lines
258 B
Plaintext
Raw Normal View History

2022-12-16 09:07:21 -06:00
#version 330
2022-06-21 23:16:14 -05:00
in vec2 TexCoords;
out vec4 color;
uniform sampler2DArray image;
uniform float frame;
uniform vec3 spriteColor;
void main()
2022-12-16 09:07:21 -06:00
{
2022-06-21 23:16:14 -05:00
color = vec4(spriteColor, 1.f) * texture(image, vec3(TexCoords,frame));
if (color.a < 0.1)
discard;
}