@galacean/engine-loader 1.1.0-beta.27 → 1.1.0-beta.28

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
@@ -538,6 +538,8 @@ var ReflectionParser = /*#__PURE__*/ function() {
538
538
  if (position) entity.transform.position.copyFrom(position);
539
539
  if (rotation) entity.transform.rotation.copyFrom(rotation);
540
540
  if (scale) entity.transform.scale.copyFrom(scale);
541
+ var _entityConfig_layer;
542
+ entity.layer = (_entityConfig_layer = entityConfig.layer) != null ? _entityConfig_layer : entity.layer;
541
543
  return entity;
542
544
  });
543
545
  };
@@ -5661,6 +5663,9 @@ var SceneLoader = /*#__PURE__*/ function(Loader1) {
5661
5663
  if (shadow.shadowResolution != undefined) scene.shadowResolution = shadow.shadowResolution;
5662
5664
  if (shadow.shadowDistance != undefined) scene.shadowDistance = shadow.shadowDistance;
5663
5665
  if (shadow.shadowCascades != undefined) scene.shadowCascades = shadow.shadowCascades;
5666
+ var _shadow_shadowTwoCascadeSplits;
5667
+ scene.shadowTwoCascadeSplits = (_shadow_shadowTwoCascadeSplits = shadow.shadowTwoCascadeSplits) != null ? _shadow_shadowTwoCascadeSplits : scene.shadowTwoCascadeSplits;
5668
+ shadow.shadowFourCascadeSplits && scene.shadowFourCascadeSplits.copyFrom(shadow.shadowFourCascadeSplits);
5664
5669
  }
5665
5670
  return Promise.all(promises).then(function() {
5666
5671
  resolve(scene);