فهرست منبع

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;