浏览代码

tiny boost :)

David Catuhe 8 年之前
父节点
当前提交
83ca07188b
共有 3 个文件被更改,包括 2452 次插入2448 次删除
  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

文件差异内容过多而无法显示
+ 1224 - 1224
dist/preview release/babylon.d.ts


文件差异内容过多而无法显示
+ 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;