* Fixed issue with WorldMatrixInverse uniform binding being incorrect (thanks survivor)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9209 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Sha..rd 2012-02-25 22:44:07 +00:00
parent 2cbbfaa3b9
commit 7a7b2c3f5f

View File

@ -376,7 +376,7 @@ public class RenderManager {
u.setValue(VarType.Matrix4, tempMat4); u.setValue(VarType.Matrix4, tempMat4);
break; break;
case WorldMatrixInverse: case WorldMatrixInverse:
tempMat4.multLocal(worldMatrix); tempMat4.set(worldMatrix);
tempMat4.invertLocal(); tempMat4.invertLocal();
u.setValue(VarType.Matrix4, tempMat4); u.setValue(VarType.Matrix4, tempMat4);
break; break;