mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- 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:
parent
b946114145
commit
9555617816
1 changed files with 2 additions and 1 deletions
|
@ -72,9 +72,10 @@ void FQuadDrawer::DoRender(int type)
|
|||
matV[i*4+0] = buffer[i].x;
|
||||
matV[i*4+1] = buffer[i].z;
|
||||
matV[i*4+2] = buffer[i].y;
|
||||
matV[i*4+3] = 1;
|
||||
matT[i*4+0] = buffer[i].u;
|
||||
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();
|
||||
glUniformMatrix4fv(shader->vertexmatrix_index, 1, false, matV);
|
||||
|
|
Loading…
Reference in a new issue