@galacean/effects-plugin-model 2.0.0-alpha.15 → 2.0.0-alpha.17

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/alipay.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, effectsClass, RendererComponent, ItemBehaviour, HitTestType, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, registerPlugin, logger, version as version$1 } from '@galacean/effects/alipay';
1
+ import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, effectsClass, RendererComponent, ItemBehaviour, HitTestType, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, isObject, registerPlugin, logger, version as version$1 } from '@galacean/effects/alipay';
2
2
 
3
3
  /**
4
4
  * Model 插件元素类型
@@ -2521,7 +2521,7 @@ function _assert_this_initialized(self) {
2521
2521
  _this.skin = proxy.getSkinObj(engine);
2522
2522
  _this.morph = proxy.getMorphObj();
2523
2523
  _this.hide = proxy.isHide();
2524
- _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.listIndex) || 0;
2524
+ _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.renderOrder) || 0;
2525
2525
  //
2526
2526
  _this.subMeshes = [];
2527
2527
  var geometry = proxy.getGeometry();
@@ -4426,7 +4426,7 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
4426
4426
  var _this_sceneManager;
4427
4427
  this.createContent();
4428
4428
  this.item.type = VFX_ITEM_TYPE_3D;
4429
- this.priority = this.item.listIndex;
4429
+ this.priority = this.item.renderOrder;
4430
4430
  this.sceneManager = getSceneManager(this);
4431
4431
  (_this_sceneManager = this.sceneManager) == null ? void 0 : _this_sceneManager.addItem(this.content);
4432
4432
  if (this.item.parentId && this.item.parent) {
@@ -4543,7 +4543,7 @@ var ModelSkyboxComponent = /*#__PURE__*/ function(RendererComponent) {
4543
4543
  var _this_sceneManager;
4544
4544
  this.createContent();
4545
4545
  this.item.type = VFX_ITEM_TYPE_3D;
4546
- this.priority = this.item.listIndex;
4546
+ this.priority = this.item.renderOrder;
4547
4547
  this.sceneManager = getSceneManager(this);
4548
4548
  (_this_sceneManager = this.sceneManager) == null ? void 0 : _this_sceneManager.addItem(this.content);
4549
4549
  this.setVisible(true);
@@ -8595,7 +8595,7 @@ var CullMode;
8595
8595
  _this.specularImage = data.specularImage;
8596
8596
  _this.specularImageSize = data.specularImageSize;
8597
8597
  _this.specularMipCount = data.specularMipCount;
8598
- _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.listIndex) || 0;
8598
+ _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.renderOrder) || 0;
8599
8599
  return _this;
8600
8600
  }
8601
8601
  var _proto = PSkybox.prototype;
@@ -12007,15 +12007,15 @@ var JSONConverter = /*#__PURE__*/ function() {
12007
12007
  _proto.processScene = function processScene(sceneData) {
12008
12008
  var _this = this;
12009
12009
  return _async_to_generator(function() {
12010
- var sceneJSON, oldScene, binFiles, _iterator, _step, bin, _, newScene;
12010
+ var sceneJSON, _tmp, oldScene, binFiles, _iterator, _step, bin, _, newScene;
12011
12011
  return __generator(this, function(_state) {
12012
12012
  switch(_state.label){
12013
12013
  case 0:
12014
- if (!_instanceof1(sceneData, Object)) return [
12014
+ if (!isObject(sceneData)) return [
12015
12015
  3,
12016
12016
  1
12017
12017
  ];
12018
- sceneJSON = sceneData;
12018
+ _tmp = sceneData;
12019
12019
  return [
12020
12020
  3,
12021
12021
  3
@@ -12026,9 +12026,10 @@ var JSONConverter = /*#__PURE__*/ function() {
12026
12026
  _this.loadJSON(sceneData)
12027
12027
  ];
12028
12028
  case 2:
12029
- sceneJSON = _state.sent();
12029
+ _tmp = _state.sent();
12030
12030
  _state.label = 3;
12031
12031
  case 3:
12032
+ sceneJSON = _tmp;
12032
12033
  // @ts-expect-error
12033
12034
  sceneJSON.textures.forEach(function(tex) {
12034
12035
  if (tex.source === undefined) {
@@ -13357,7 +13358,7 @@ var vertexBufferSemanticMap = {
13357
13358
 
13358
13359
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
13359
13360
  registerPlugin("model", ModelPlugin, VFXItem);
13360
- var version = "2.0.0-alpha.15";
13361
+ var version = "2.0.0-alpha.17";
13361
13362
  logger.info("plugin model version: " + version);
13362
13363
  if (version !== version$1) {
13363
13364
  console.error("注意:请统一 Model 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Model plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");