소스 검색

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;