@galacean/effects-plugin-model 2.1.0-alpha.5 → 2.1.0-alpha.7

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/index.mjs CHANGED
@@ -3,11 +3,11 @@
3
3
  * Description: Galacean Effects player model plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 飂兮
6
- * Version: v2.1.0-alpha.5
6
+ * Version: v2.1.0-alpha.7
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
10
- import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, ShaderFactory, effectsClass, RendererComponent, Behaviour, HitTestType, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, isObject, registerPlugin, logger } from '@galacean/effects';
10
+ import { math, spec, Transform, PLAYER_OPTIONS_ENV_EDITOR, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, ShaderFactory, effectsClass, RendererComponent, Behaviour, HitTestType, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, isObject, registerPlugin, logger } from '@galacean/effects';
11
11
 
12
12
  /**
13
13
  * Model 插件元素类型
@@ -265,8 +265,8 @@ var PShadowType;
265
265
  PShadowType[PShadowType["variance"] = 2] = "variance";
266
266
  PShadowType[PShadowType["expVariance"] = 3] = "expVariance";
267
267
  })(PShadowType || (PShadowType = {}));
268
- var PBRShaderGUID = "pbr00000000000000000000000000000";
269
- var UnlitShaderGUID = "unlit000000000000000000000000000";
268
+ var PBRShaderGUID = spec.BuiltinObjectGUID.PBRShader;
269
+ var UnlitShaderGUID = spec.BuiltinObjectGUID.UnlitShader;
270
270
  /**
271
271
  * 插件变换类
272
272
  */ var PTransform = /*#__PURE__*/ function() {
@@ -13248,7 +13248,7 @@ function getDefaultUnlitMaterialData() {
13248
13248
  },
13249
13249
  "macros": [],
13250
13250
  "shader": {
13251
- "id": "unlit000000000000000000000000000"
13251
+ "id": spec.BuiltinObjectGUID.UnlitShader
13252
13252
  },
13253
13253
  "ints": {},
13254
13254
  "floats": {
@@ -13801,7 +13801,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
13801
13801
 
13802
13802
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
13803
13803
  registerPlugin("model", ModelPlugin, VFXItem);
13804
- var version = "2.1.0-alpha.5";
13804
+ var version = "2.1.0-alpha.7";
13805
13805
  logger.info("Plugin model version: " + version + ".");
13806
13806
  if (version !== EFFECTS.version) {
13807
13807
  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!");