소스 검색

Remove unncessary matrix cloning

Popov72 4 년 전
부모
커밋
16ca708f1a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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;