- Hook up model normals
This commit is contained in:
parent
e0494b6f13
commit
4e14ed4e9e
4 changed files with 6 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue