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