Преглед изворни кода

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) {