This commit is contained in:
Mylloon 2023-05-21 21:41:25 +02:00
parent 6393d1d7f3
commit 8cccb01a75
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -93,7 +93,7 @@ static void draw(void) {
glActiveTexture(GL_TEXTURE1); glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, _texId[1]); 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); glUniform1f(glGetUniformLocation(_pId, "fadeAmount"), fade_amout);
glUniform1i(glGetUniformLocation(_pId, "tex0"), 0); glUniform1i(glGetUniformLocation(_pId, "tex0"), 0);
glUniform1i(glGetUniformLocation(_pId, "tex1"), 1); glUniform1i(glGetUniformLocation(_pId, "tex1"), 1);