Quellcode durchsuchen

Fixing cache issue with VR

David Catuhe vor 10 Jahren
Ursprung
Commit
26d63d09f4

+ 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) {

Datei-Diff unterdrückt, da er zu groß ist
+ 4 - 5
babylon.2.1-beta.js


Datei-Diff unterdrückt, da er zu groß ist
+ 4 - 5
babylon.2.1-beta.noworker.js