From 8cccb01a75837f8feb41bc2bfc57db0f30f09c0a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 21 May 2023 21:41:25 +0200 Subject: [PATCH] fix fade --- src/tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag.c b/src/tag.c index 784150d..c736fa6 100644 --- a/src/tag.c +++ b/src/tag.c @@ -93,7 +93,7 @@ static void draw(void) { glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, _texId[1]); - GLfloat fade_amout = (GLfloat)t0 / 7000.f; + GLfloat fade_amout = ((GLfloat)t0 / 7000.f) - 1.5f; glUniform1f(glGetUniformLocation(_pId, "fadeAmount"), fade_amout); glUniform1i(glGetUniformLocation(_pId, "tex0"), 0); glUniform1i(glGetUniformLocation(_pId, "tex1"), 1);