浏览代码

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