Explorar el Código

Remove unncessary matrix cloning

Popov72 hace 4 años
padre
commit
16ca708f1a
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/Materials/Textures/mirrorTexture.ts

+ 1 - 2
src/Materials/Textures/mirrorTexture.ts

@@ -171,8 +171,7 @@ export class MirrorTexture extends RenderTargetTexture {
             Matrix.ReflectionToRef(this.mirrorPlane, this._mirrorMatrix);
             this._mirrorMatrix.multiplyToRef(scene.getViewMatrix(), this._transformMatrix);
 
-            // Clone to not mark matrices as updated
-            scene.setTransformMatrix(this._transformMatrix.clone(), scene.getProjectionMatrix().clone());
+            scene.setTransformMatrix(this._transformMatrix, scene.getProjectionMatrix());
 
             saveClipPlane = scene.clipPlane;
             scene.clipPlane = this.mirrorPlane;