* 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
3.0
Sha..rd 13 years ago
parent 2cbbfaa3b9
commit 7a7b2c3f5f
  1. 2
      engine/src/core/com/jme3/renderer/RenderManager.java

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

Loading…
Cancel
Save