- calculate the normal view matrix at a higher level.
This commit is contained in:
parent
7f5272c23f
commit
eb277cc101
4 changed files with 30 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue