@galacean/effects-plugin-model 2.9.0-alpha.1 → 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 +6 -3
- 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 +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +6 -3
- 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/loader.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-alpha.
|
|
6
|
+
* Version: v2.9.0-alpha.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -2136,7 +2136,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
|
|
|
2136
2136
|
registerPlugin("model", ModelPlugin);
|
|
2137
2137
|
/**
|
|
2138
2138
|
* 插件版本号
|
|
2139
|
-
*/ var version = "2.9.0-alpha.
|
|
2139
|
+
*/ var version = "2.9.0-alpha.2";
|
|
2140
2140
|
logger.info("Plugin model version: " + version + ".");
|
|
2141
2141
|
if (version !== EFFECTS.version) {
|
|
2142
2142
|
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!");
|
|
@@ -2166,6 +2166,7 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
2166
2166
|
var customHitTest = {
|
|
2167
2167
|
behavior: bounding.behavior,
|
|
2168
2168
|
type: HitTestType.custom,
|
|
2169
|
+
clipMasks: _this.frameClipMasks,
|
|
2169
2170
|
collect: function collect(ray, pointInCanvas) {
|
|
2170
2171
|
var result = mesh.hitTesting(ray.origin, ray.direction);
|
|
2171
2172
|
return result;
|
|
@@ -2177,6 +2178,7 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
2177
2178
|
var customHitTest1 = {
|
|
2178
2179
|
behavior: bounding.behavior,
|
|
2179
2180
|
type: HitTestType.custom,
|
|
2181
|
+
clipMasks: _this.frameClipMasks,
|
|
2180
2182
|
collect: function collect(ray, pointInCanvas) {
|
|
2181
2183
|
var result = RayIntersectsBoxWithRotation(ray, worldMatrixData, bounding);
|
|
2182
2184
|
return result;
|
|
@@ -2196,7 +2198,8 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
2196
2198
|
type: type,
|
|
2197
2199
|
behavior: bounding.behavior,
|
|
2198
2200
|
radius: bounding.radius || 0,
|
|
2199
|
-
center: center
|
|
2201
|
+
center: center,
|
|
2202
|
+
clipMasks: _this.frameClipMasks
|
|
2200
2203
|
};
|
|
2201
2204
|
}
|
|
2202
2205
|
}
|