@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.js CHANGED
@@ -3,7 +3,7 @@
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
  'use strict';
@@ -2956,42 +2956,6 @@ var normal = new Vector3();
2956
2956
  return EFFECTS.Texture.create(engine, options);
2957
2957
  };
2958
2958
  /**
2959
- * 创建渲染 Pass
2960
- * @param renderer - 渲染器
2961
- * @param name - 名称
2962
- * @param priority - 优先级
2963
- * @param meshData - Mesh 数据或数据列表
2964
- * @param fboOpts - FBO 参数
2965
- * @returns
2966
- */ WebGLHelper.createRenderPass = function createRenderPass(renderer, name, priority, meshData, fboOpts) {
2967
- var meshList = _instanceof1(meshData, EFFECTS.Mesh) ? [
2968
- meshData
2969
- ] : meshData;
2970
- return new EFFECTS.RenderPass(renderer, {
2971
- name: name,
2972
- priority: priority,
2973
- attachments: fboOpts.colorAttachments,
2974
- depthStencilAttachment: fboOpts.depthAttachment,
2975
- clearAction: {
2976
- clearDepth: 1,
2977
- clearStencil: 0,
2978
- clearColor: [
2979
- 0,
2980
- 0,
2981
- 0,
2982
- 0
2983
- ],
2984
- colorAction: EFFECTS.TextureLoadAction.clear,
2985
- depthAction: EFFECTS.TextureLoadAction.clear
2986
- },
2987
- // storeAction: {
2988
- // colorAction: TextureStoreAction.store,
2989
- // },
2990
- meshes: meshList,
2991
- viewport: fboOpts.viewport
2992
- });
2993
- };
2994
- /**
2995
2959
  * 删除纹理
2996
2960
  * @param texture - 纹理对象
2997
2961
  */ WebGLHelper.deleteTexture = function deleteTexture(texture) {
@@ -7276,34 +7240,6 @@ exports.PSkyboxType = void 0;
7276
7240
  this.meshCache.set(name, mesh);
7277
7241
  return mesh;
7278
7242
  };
7279
- _proto.getShadowBasePass = function getShadowBasePass(name, priority, meshList, fboOptions) {
7280
- return this.getRenderPass(name, priority, meshList, fboOptions);
7281
- };
7282
- _proto.getShadowFilterPass = function getShadowFilterPass(name, priority, meshList, fboOptions) {
7283
- return this.getRenderPass(name, priority, meshList, fboOptions);
7284
- };
7285
- /**
7286
- * 获取渲染 Pass
7287
- * @param name - 名称
7288
- * @param priority - 优先级
7289
- * @param meshList - Mesh 列表
7290
- * @param fboOptions - FBO 参数
7291
- * @returns
7292
- */ _proto.getRenderPass = function getRenderPass(name, priority, meshList, fboOptions) {
7293
- var cachedPass = this.renderPassCache.get(name);
7294
- if (cachedPass !== undefined) {
7295
- cachedPass.setMeshes([]);
7296
- meshList.forEach(function(mesh) {
7297
- cachedPass.addMesh(mesh);
7298
- });
7299
- return cachedPass;
7300
- } else {
7301
- var renderer = this.engine.renderer;
7302
- var renderPass = WebGLHelper.createRenderPass(renderer, name, priority, meshList, fboOptions);
7303
- this.renderPassCache.set(name, renderPass);
7304
- return renderPass;
7305
- }
7306
- };
7307
7243
  /**
7308
7244
  * 销毁缓存,释放所有缓存的对象
7309
7245
  */ _proto.dispose = function dispose() {
@@ -13222,7 +13158,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
13222
13158
  EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
13223
13159
  /**
13224
13160
  * 插件版本号
13225
- */ var version = "2.7.3";
13161
+ */ var version = "2.8.0-alpha.0";
13226
13162
  EFFECTS.logger.info("Plugin model version: " + version + ".");
13227
13163
  if (version !== EFFECTS__namespace.version) {
13228
13164
  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!");