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

Update to use ambient in grayscale.

Gary Hsu пре 8 година
родитељ
комит
a6e22e5e0a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 1 - 1
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -932,7 +932,7 @@ module BABYLON.GLTF2 {
             if (material.occlusionTexture) {
                 GLTFLoader.LoadTextureAsync(runtime, material.occlusionTexture, babylonTexture => {
                     material.babylonMaterial.ambientTexture = babylonTexture;
-                    material.babylonMaterial.useAmbientOcclusionFromMetallicTextureRed = true;
+                    material.babylonMaterial.useAmbientInGrayScale = true;
                     if (material.occlusionTexture.strength !== undefined) {
                         material.babylonMaterial.ambientTextureStrength = material.occlusionTexture.strength;
                     }