Преглед на файлове

Fixing cache issue with VR

David Catuhe преди 10 години
родител
ревизия
26d63d09f4
променени са 5 файла, в които са добавени 11 реда и са изтрити 10 реда
  1. 1 0
      Babylon/babylon.scene.js
  2. 1 0
      Babylon/babylon.scene.ts
  3. 1 0
      babylon.2.1-beta.debug.js
  4. 4 5
      babylon.2.1-beta.js
  5. 4 5
      babylon.2.1-beta.noworker.js

+ 1 - 0
Babylon/babylon.scene.js

@@ -1063,6 +1063,7 @@ var BABYLON;
             // Viewport
             engine.setViewport(this.activeCamera.viewport);
             // Camera
+            this.resetCachedMaterial();
             this._renderId++;
             this.updateTransformMatrix();
             if (this.beforeCameraRender) {

+ 1 - 0
Babylon/babylon.scene.ts

@@ -1371,6 +1371,7 @@
             engine.setViewport(this.activeCamera.viewport);
 
             // Camera
+            this.resetCachedMaterial();
             this._renderId++;
             this.updateTransformMatrix();
 

+ 1 - 0
babylon.2.1-beta.debug.js

@@ -13067,6 +13067,7 @@ var BABYLON;
             // Viewport
             engine.setViewport(this.activeCamera.viewport);
             // Camera
+            this.resetCachedMaterial();
             this._renderId++;
             this.updateTransformMatrix();
             if (this.beforeCameraRender) {

Файловите разлики са ограничени, защото са твърде много
+ 4 - 5
babylon.2.1-beta.js


Файловите разлики са ограничени, защото са твърде много
+ 4 - 5
babylon.2.1-beta.noworker.js