- calculate the normal view matrix at a higher level.

This commit is contained in:
Christoph Oelckers 2018-06-20 13:49:06 +02:00
commit eb277cc101
4 changed files with 30 additions and 15 deletions

View file

@ -308,7 +308,10 @@ void FRenderState::ApplyMatrices()
{
if (GLRenderer->mShaderManager != NULL)
{
GLRenderer->mShaderManager->ApplyMatrices(&mProjectionMatrix, &mViewMatrix, mPassType);
VSMatrix norm;
norm.computeNormalMatrix(mViewMatrix);
GLRenderer->mShaderManager->ApplyMatrices(&mProjectionMatrix, &mViewMatrix, &norm, mPassType);
}
}