- Hook up model normals

This commit is contained in:
Magnus Norddahl 2017-04-14 01:19:44 +02:00
commit 4e14ed4e9e
4 changed files with 6 additions and 10 deletions

View file

@ -280,7 +280,7 @@ bool FRenderState::ApplyShader()
mModelMatrix.matrixToGL(activeShader->modelmatrix_index);
VSMatrix norm;
norm.computeNormalMatrix(mModelMatrix);
mNormalModelMatrix.matrixToGL(activeShader->normalmodelmatrix_index);
norm.matrixToGL(activeShader->normalmodelmatrix_index);
activeShader->currentModelMatrixState = true;
}
else if (activeShader->currentModelMatrixState)