@galacean/effects-plugin-model 2.9.0-alpha.1 → 2.9.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/alipay.js +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +8 -4
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/model-plugin.d.ts +1 -1
- package/dist/plugin/model-tree-component.d.ts +6 -3
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +11 -4
package/dist/index.mjs
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.9.0
|
|
6
|
+
* Version: v2.9.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -1837,6 +1837,7 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1837
1837
|
var customHitTest = {
|
|
1838
1838
|
behavior: bounding.behavior,
|
|
1839
1839
|
type: HitTestType.custom,
|
|
1840
|
+
clipMasks: _this.frameClipMasks,
|
|
1840
1841
|
collect: function collect(ray, pointInCanvas) {
|
|
1841
1842
|
var result = mesh.hitTesting(ray.origin, ray.direction);
|
|
1842
1843
|
return result;
|
|
@@ -1848,6 +1849,7 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1848
1849
|
var customHitTest1 = {
|
|
1849
1850
|
behavior: bounding.behavior,
|
|
1850
1851
|
type: HitTestType.custom,
|
|
1852
|
+
clipMasks: _this.frameClipMasks,
|
|
1851
1853
|
collect: function collect(ray, pointInCanvas) {
|
|
1852
1854
|
var result = RayIntersectsBoxWithRotation(ray, worldMatrixData, bounding);
|
|
1853
1855
|
return result;
|
|
@@ -1867,7 +1869,8 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1867
1869
|
type: type,
|
|
1868
1870
|
behavior: bounding.behavior,
|
|
1869
1871
|
radius: bounding.radius || 0,
|
|
1870
|
-
center: center
|
|
1872
|
+
center: center,
|
|
1873
|
+
clipMasks: _this.frameClipMasks
|
|
1871
1874
|
};
|
|
1872
1875
|
}
|
|
1873
1876
|
}
|
|
@@ -9334,7 +9337,8 @@ var EffectsMeshProxy = /*#__PURE__*/ function() {
|
|
|
9334
9337
|
var item = new VFXItem(composition.engine, props);
|
|
9335
9338
|
composition.addItem(item);
|
|
9336
9339
|
var modelPluginComponent = item.addComponent(ModelPluginComponent);
|
|
9337
|
-
|
|
9340
|
+
var _scene_storage;
|
|
9341
|
+
modelPluginComponent.sceneParams = (_scene_storage = scene == null ? void 0 : scene.storage) != null ? _scene_storage : {};
|
|
9338
9342
|
};
|
|
9339
9343
|
return ModelPlugin;
|
|
9340
9344
|
}(_wrap_native_super(Plugin));
|
|
@@ -13188,7 +13192,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13188
13192
|
registerPlugin("model", ModelPlugin);
|
|
13189
13193
|
/**
|
|
13190
13194
|
* 插件版本号
|
|
13191
|
-
*/ var version = "2.9.0
|
|
13195
|
+
*/ var version = "2.9.0";
|
|
13192
13196
|
logger.info("Plugin model version: " + version + ".");
|
|
13193
13197
|
if (version !== EFFECTS.version) {
|
|
13194
13198
|
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!");
|