This commit is contained in:
John Alanbrook 2022-12-16 15:07:21 +00:00
parent fa8dfaf8e8
commit bfddf39a38
3 changed files with 4 additions and 4 deletions

View file

@ -87,7 +87,7 @@ MYTAG = $(VER)_$(PTYPE)_$(INFO)
DIST = $(NAME)-$(MYTAG).tar.gz
.PHONY: $(NAME)
yugine: $(BIN)yugine
$(NAME): $(BIN)$(NAME)

View file

@ -17,7 +17,7 @@ struct Character {
struct sFont {
uint32_t fontTexture;
uint32_t height;
struct Character Characters[126];
struct Character Characters[127];
};

View file

@ -1,4 +1,4 @@
#version 330 core
#version 330
in vec2 TexCoords;
out vec4 color;
@ -7,7 +7,7 @@ uniform float frame;
uniform vec3 spriteColor;
void main()
{
{
color = vec4(spriteColor, 1.f) * texture(image, vec3(TexCoords,frame));
if (color.a < 0.1)
discard;