@galacean/effects-plugin-model 2.9.0-alpha.0 → 2.9.0-alpha.2
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 +7 -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 +7 -4
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +7 -4
- package/dist/loader.mjs.map +1 -1
- 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.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.9.0-alpha.
|
|
6
|
+
* Version: v2.9.0-alpha.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -1860,6 +1860,7 @@ exports.ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1860
1860
|
var customHitTest = {
|
|
1861
1861
|
behavior: bounding.behavior,
|
|
1862
1862
|
type: EFFECTS.HitTestType.custom,
|
|
1863
|
+
clipMasks: _this.frameClipMasks,
|
|
1863
1864
|
collect: function collect(ray, pointInCanvas) {
|
|
1864
1865
|
var result = mesh.hitTesting(ray.origin, ray.direction);
|
|
1865
1866
|
return result;
|
|
@@ -1871,6 +1872,7 @@ exports.ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1871
1872
|
var customHitTest1 = {
|
|
1872
1873
|
behavior: bounding.behavior,
|
|
1873
1874
|
type: EFFECTS.HitTestType.custom,
|
|
1875
|
+
clipMasks: _this.frameClipMasks,
|
|
1874
1876
|
collect: function collect(ray, pointInCanvas) {
|
|
1875
1877
|
var result = RayIntersectsBoxWithRotation(ray, worldMatrixData, bounding);
|
|
1876
1878
|
return result;
|
|
@@ -1890,7 +1892,8 @@ exports.ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1890
1892
|
type: type,
|
|
1891
1893
|
behavior: bounding.behavior,
|
|
1892
1894
|
radius: bounding.radius || 0,
|
|
1893
|
-
center: center
|
|
1895
|
+
center: center,
|
|
1896
|
+
clipMasks: _this.frameClipMasks
|
|
1894
1897
|
};
|
|
1895
1898
|
}
|
|
1896
1899
|
}
|
|
@@ -9354,7 +9357,7 @@ var EffectsMeshProxy = /*#__PURE__*/ function() {
|
|
|
9354
9357
|
duration: 9999999,
|
|
9355
9358
|
endBehavior: EFFECTS.spec.END_BEHAVIOR_FORWARD
|
|
9356
9359
|
};
|
|
9357
|
-
var item = new EFFECTS.VFXItem(composition.
|
|
9360
|
+
var item = new EFFECTS.VFXItem(composition.engine, props);
|
|
9358
9361
|
composition.addItem(item);
|
|
9359
9362
|
var modelPluginComponent = item.addComponent(exports.ModelPluginComponent);
|
|
9360
9363
|
modelPluginComponent.sceneParams = scene.storage;
|
|
@@ -13211,7 +13214,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13211
13214
|
EFFECTS.registerPlugin("model", ModelPlugin);
|
|
13212
13215
|
/**
|
|
13213
13216
|
* 插件版本号
|
|
13214
|
-
*/ var version = "2.9.0-alpha.
|
|
13217
|
+
*/ var version = "2.9.0-alpha.2";
|
|
13215
13218
|
EFFECTS.logger.info("Plugin model version: " + version + ".");
|
|
13216
13219
|
if (version !== EFFECTS__namespace.version) {
|
|
13217
13220
|
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!");
|