Jelajahi Sumber

Fixing another issue with instances and frustum

David Catuhe 11 tahun lalu
induk
melakukan
e7023cee73

+ 1 - 1
Babylon/Lights/Shadows/babylon.shadowGenerator.js

@@ -63,7 +63,7 @@
                     if (hardwareInstancedRendering) {
                         mesh._renderWithInstances(subMesh, false, batch, _this._effect, engine);
                     } else {
-                        if (batch.renderSelf) {
+                        if (batch.renderSelf[subMesh._id]) {
                             _this._effect.setMatrix("world", mesh.getWorldMatrix());
 
                             // Draw

+ 1 - 1
Babylon/Lights/Shadows/babylon.shadowGenerator.ts

@@ -71,7 +71,7 @@
                     if (hardwareInstancedRendering) {
                         mesh._renderWithInstances(subMesh, false, batch, this._effect, engine);
                     } else {
-                        if (batch.renderSelf) {
+                        if (batch.renderSelf[subMesh._id]) {
                             this._effect.setMatrix("world", mesh.getWorldMatrix());
 
                             // Draw

+ 1 - 1
Babylon/Mesh/babylon.mesh.js

@@ -389,7 +389,7 @@ var BABYLON;
             if (hardwareInstancedRendering) {
                 this._renderWithInstances(subMesh, wireFrame, batch, effect, engine);
             } else {
-                if (batch.renderSelf) {
+                if (batch.renderSelf[subMesh._id]) {
                     // Draw
                     this._draw(subMesh, !wireFrame);
                 }

+ 1 - 1
Babylon/Mesh/babylon.mesh.ts

@@ -392,7 +392,7 @@
             if (hardwareInstancedRendering) {
                 this._renderWithInstances(subMesh, wireFrame, batch, effect, engine);
             } else {
-                if (batch.renderSelf) {
+                if (batch.renderSelf[subMesh._id]) {
                     // Draw
                     this._draw(subMesh, !wireFrame);
                 }

File diff ditekan karena terlalu besar
+ 1 - 1
babylon.1.13-beta-debug.js


File diff ditekan karena terlalu besar
+ 3 - 3
babylon.1.13-beta.js