Browse Source

Force irradiance in fragment when loading glTF with normal maps

Gary Hsu 6 năm trước cách đây
mục cha
commit
b5838648f4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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) {