@galacean/effects-plugin-model 2.7.3 → 2.8.0-alpha.0

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.7.3
6
+ * Version: v2.8.0-alpha.0
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
10
- import { math, spec, Transform, PLAYER_OPTIONS_ENV_EDITOR, RenderPassAttachmentStorageType, glContext, Material, Mesh, Geometry, ShaderFactory, effectsClass, RendererComponent, Behaviour, HitTestType, AnimationClip, TextureSourceType, Texture, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, GLSLVersion, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, addItem, removeItem, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, isObject, registerPlugin, logger } from '@galacean/effects';
10
+ import { math, spec, Transform, PLAYER_OPTIONS_ENV_EDITOR, RenderPassAttachmentStorageType, glContext, Material, Mesh, Geometry, ShaderFactory, effectsClass, RendererComponent, Behaviour, HitTestType, AnimationClip, TextureSourceType, Texture, DestroyOptions, RenderPassDestroyAttachmentType, GLSLVersion, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, addItem, removeItem, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, isObject, registerPlugin, logger } from '@galacean/effects';
11
11
 
12
12
  /**
13
13
  * Model 插件元素类型
@@ -2933,42 +2933,6 @@ var normal = new Vector3();
2933
2933
  return Texture.create(engine, options);
2934
2934
  };
2935
2935
  /**
2936
- * 创建渲染 Pass
2937
- * @param renderer - 渲染器
2938
- * @param name - 名称
2939
- * @param priority - 优先级
2940
- * @param meshData - Mesh 数据或数据列表
2941
- * @param fboOpts - FBO 参数
2942
- * @returns
2943
- */ WebGLHelper.createRenderPass = function createRenderPass(renderer, name, priority, meshData, fboOpts) {
2944
- var meshList = _instanceof1(meshData, Mesh) ? [
2945
- meshData
2946
- ] : meshData;
2947
- return new RenderPass(renderer, {
2948
- name: name,
2949
- priority: priority,
2950
- attachments: fboOpts.colorAttachments,
2951
- depthStencilAttachment: fboOpts.depthAttachment,
2952
- clearAction: {
2953
- clearDepth: 1,
2954
- clearStencil: 0,
2955
- clearColor: [
2956
- 0,
2957
- 0,
2958
- 0,
2959
- 0
2960
- ],
2961
- colorAction: TextureLoadAction.clear,
2962
- depthAction: TextureLoadAction.clear
2963
- },
2964
- // storeAction: {
2965
- // colorAction: TextureStoreAction.store,
2966
- // },
2967
- meshes: meshList,
2968
- viewport: fboOpts.viewport
2969
- });
2970
- };
2971
- /**
2972
2936
  * 删除纹理
2973
2937
  * @param texture - 纹理对象
2974
2938
  */ WebGLHelper.deleteTexture = function deleteTexture(texture) {
@@ -7253,34 +7217,6 @@ var PSkyboxType;
7253
7217
  this.meshCache.set(name, mesh);
7254
7218
  return mesh;
7255
7219
  };
7256
- _proto.getShadowBasePass = function getShadowBasePass(name, priority, meshList, fboOptions) {
7257
- return this.getRenderPass(name, priority, meshList, fboOptions);
7258
- };
7259
- _proto.getShadowFilterPass = function getShadowFilterPass(name, priority, meshList, fboOptions) {
7260
- return this.getRenderPass(name, priority, meshList, fboOptions);
7261
- };
7262
- /**
7263
- * 获取渲染 Pass
7264
- * @param name - 名称
7265
- * @param priority - 优先级
7266
- * @param meshList - Mesh 列表
7267
- * @param fboOptions - FBO 参数
7268
- * @returns
7269
- */ _proto.getRenderPass = function getRenderPass(name, priority, meshList, fboOptions) {
7270
- var cachedPass = this.renderPassCache.get(name);
7271
- if (cachedPass !== undefined) {
7272
- cachedPass.setMeshes([]);
7273
- meshList.forEach(function(mesh) {
7274
- cachedPass.addMesh(mesh);
7275
- });
7276
- return cachedPass;
7277
- } else {
7278
- var renderer = this.engine.renderer;
7279
- var renderPass = WebGLHelper.createRenderPass(renderer, name, priority, meshList, fboOptions);
7280
- this.renderPassCache.set(name, renderPass);
7281
- return renderPass;
7282
- }
7283
- };
7284
7220
  /**
7285
7221
  * 销毁缓存,释放所有缓存的对象
7286
7222
  */ _proto.dispose = function dispose() {
@@ -13199,7 +13135,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
13199
13135
  registerPlugin("model", ModelPlugin, VFXItem);
13200
13136
  /**
13201
13137
  * 插件版本号
13202
- */ var version = "2.7.3";
13138
+ */ var version = "2.8.0-alpha.0";
13203
13139
  logger.info("Plugin model version: " + version + ".");
13204
13140
  if (version !== EFFECTS.version) {
13205
13141
  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!");