@galacean/engine-loader 1.0.0-beta.20 → 1.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1669,13 +1669,13 @@ var GLTFEntityParser = /*#__PURE__*/ function(GLTFParser) {
1669
1669
  }
1670
1670
  sceneRoots[i] = rootEntity;
1671
1671
  }
1672
+ // @ts-ignore
1673
+ sceneRoots[i]._hookResource = glTFResource;
1674
+ // @ts-ignore
1675
+ glTFResource._addReferCount(1);
1672
1676
  }
1673
1677
  glTFResource.sceneRoots = sceneRoots;
1674
1678
  glTFResource.defaultSceneRoot = sceneRoots[sceneID];
1675
- // @ts-ignore
1676
- glTFResource.defaultSceneRoot._hookResource = glTFResource;
1677
- // @ts-ignore
1678
- glTFResource._addReferCount(1);
1679
1679
  };
1680
1680
  return GLTFEntityParser;
1681
1681
  }(GLTFParser);
@@ -4543,6 +4543,10 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
4543
4543
  scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
4544
4544
  });
4545
4545
  promises.push(ambientLightPromise);
4546
+ } else {
4547
+ scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
4548
+ scene.ambientLight.specularIntensity = ambient.specularIntensity;
4549
+ scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
4546
4550
  }
4547
4551
  var background = data.scene.background;
4548
4552
  scene.background.mode = background.mode;
package/dist/module.js CHANGED
@@ -1664,13 +1664,13 @@ var GLTFEntityParser = /*#__PURE__*/ function(GLTFParser) {
1664
1664
  }
1665
1665
  sceneRoots[i] = rootEntity;
1666
1666
  }
1667
+ // @ts-ignore
1668
+ sceneRoots[i]._hookResource = glTFResource;
1669
+ // @ts-ignore
1670
+ glTFResource._addReferCount(1);
1667
1671
  }
1668
1672
  glTFResource.sceneRoots = sceneRoots;
1669
1673
  glTFResource.defaultSceneRoot = sceneRoots[sceneID];
1670
- // @ts-ignore
1671
- glTFResource.defaultSceneRoot._hookResource = glTFResource;
1672
- // @ts-ignore
1673
- glTFResource._addReferCount(1);
1674
1674
  };
1675
1675
  return GLTFEntityParser;
1676
1676
  }(GLTFParser);
@@ -4538,6 +4538,10 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
4538
4538
  scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
4539
4539
  });
4540
4540
  promises.push(ambientLightPromise);
4541
+ } else {
4542
+ scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
4543
+ scene.ambientLight.specularIntensity = ambient.specularIntensity;
4544
+ scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
4541
4545
  }
4542
4546
  var background = data.scene.background;
4543
4547
  scene.background.mode = background.mode;