- fixed: The default for position.w is 1, so gl_quaddrawer.cpp needs to set this, too, for the uniform vertex positions.

This commit is contained in:
Christoph Oelckers 2016-08-22 22:02:02 +02:00
parent b946114145
commit 9555617816

View file

@ -72,9 +72,10 @@ void FQuadDrawer::DoRender(int type)
matV[i*4+0] = buffer[i].x; matV[i*4+0] = buffer[i].x;
matV[i*4+1] = buffer[i].z; matV[i*4+1] = buffer[i].z;
matV[i*4+2] = buffer[i].y; matV[i*4+2] = buffer[i].y;
matV[i*4+3] = 1;
matT[i*4+0] = buffer[i].u; matT[i*4+0] = buffer[i].u;
matT[i*4+1] = buffer[i].v; matT[i*4+1] = buffer[i].v;
matV[i*4+3] = matT[i*4+2] = matT[i*4+3] = 0; matT[i*4+2] = matT[i*4+3] = 0;
} }
FShader *shader = GLRenderer->mShaderManager->GetActiveShader(); FShader *shader = GLRenderer->mShaderManager->GetActiveShader();
glUniformMatrix4fv(shader->vertexmatrix_index, 1, false, matV); glUniformMatrix4fv(shader->vertexmatrix_index, 1, false, matV);