Forráskód Böngészése

fixed reflection texture matrix performance issue

Kesshi 8 éve
szülő
commit
41887d875e
1 módosított fájl, 4 hozzáadás és 0 törlés
  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._projectionModeMatrix = Matrix.Zero();
             }
             }
 
 
+            this._cachedUOffset = this.uOffset;
+            this._cachedVOffset = this.vOffset;
+            this._cachedUScale = this.uScale;
+            this._cachedVScale = this.vScale;
             this._cachedCoordinatesMode = this.coordinatesMode;
             this._cachedCoordinatesMode = this.coordinatesMode;
 
 
             switch (this.coordinatesMode) {
             switch (this.coordinatesMode) {