소스 검색

Merge pull request #5653 from bghgary/loader-irradiance-in-fragment

Force irradiance in fragment when loading glTF with normal maps
David Catuhe 6 년 전
부모
커밋
2b8b4c77b1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 2 - 0
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -1600,6 +1600,8 @@ module BABYLON.GLTF2 {
                 if (material.normalTexture.scale != undefined) {
                     babylonMaterial.bumpTexture.level = material.normalTexture.scale;
                 }
+
+                babylonMaterial.forceIrradianceInFragment = true;
             }
 
             if (material.occlusionTexture) {