@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.
package/dist/main.js CHANGED
@@ -1668,13 +1668,13 @@ var GLTFEntityParser = /*#__PURE__*/ function(GLTFParser) {
1668
1668
  }
1669
1669
  sceneRoots[i] = rootEntity;
1670
1670
  }
1671
+ // @ts-ignore
1672
+ sceneRoots[i]._hookResource = glTFResource;
1673
+ // @ts-ignore
1674
+ glTFResource._addReferCount(1);
1671
1675
  }
1672
1676
  glTFResource.sceneRoots = sceneRoots;
1673
1677
  glTFResource.defaultSceneRoot = sceneRoots[sceneID];
1674
- // @ts-ignore
1675
- glTFResource.defaultSceneRoot._hookResource = glTFResource;
1676
- // @ts-ignore
1677
- glTFResource._addReferCount(1);
1678
1678
  };
1679
1679
  return GLTFEntityParser;
1680
1680
  }(GLTFParser);
@@ -4542,6 +4542,10 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
4542
4542
  scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
4543
4543
  });
4544
4544
  promises.push(ambientLightPromise);
4545
+ } else {
4546
+ scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
4547
+ scene.ambientLight.specularIntensity = ambient.specularIntensity;
4548
+ scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
4545
4549
  }
4546
4550
  var background = data.scene.background;
4547
4551
  scene.background.mode = background.mode;