浏览代码

Merge pull request #2528 from Kesshi/texturePerformance

fixed reflection texture matrix performance issue
David Catuhe 8 年之前
父节点
当前提交
867216ef9d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Materials/Textures/babylon.texture.ts

+ 4 - 0
src/Materials/Textures/babylon.texture.ts

@@ -255,6 +255,10 @@
                 this._projectionModeMatrix = Matrix.Zero();
             }
 
+            this._cachedUOffset = this.uOffset;
+            this._cachedVOffset = this.vOffset;
+            this._cachedUScale = this.uScale;
+            this._cachedVScale = this.vScale;
             this._cachedCoordinatesMode = this.coordinatesMode;
 
             switch (this.coordinatesMode) {