Browse Source

tiny boost :)

David Catuhe 8 years ago
parent
commit
83ca07188b
3 changed files with 2452 additions and 2448 deletions
  1. 1224 1224
      dist/preview release/babylon.d.ts
  2. 1224 1224
      dist/preview release/babylon.module.d.ts
  3. 4 0
      src/Materials/babylon.materialHelper.ts

File diff suppressed because it is too large
+ 1224 - 1224
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1224 - 1224
dist/preview release/babylon.module.d.ts


+ 4 - 0
src/Materials/babylon.materialHelper.ts

@@ -180,6 +180,10 @@
         }
 
         public static HandleFallbacksForShadows(defines: MaterialDefines, fallbacks: EffectFallbacks, maxSimultaneousLights = 4): void {
+            if (!defines["SHADOWS"]) {
+                return;
+            }
+
             for (var lightIndex = 0; lightIndex < maxSimultaneousLights; lightIndex++) {
                 if (!defines["LIGHT" + lightIndex]) {
                     break;