fix fade
This commit is contained in:
parent
6393d1d7f3
commit
8cccb01a75
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue