Bläddra i källkod

Remove unncessary matrix cloning

Popov72 4 år sedan
förälder
incheckning
16ca708f1a
1 ändrade filer med 1 tillägg och 2 borttagningar
  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;