Browse Source

Force irradiance in fragment when loading glTF with normal maps

Gary Hsu 6 years ago
parent
commit
b5838648f4
1 changed files with 2 additions and 0 deletions
  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) {