@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/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.1
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
  }
@@ -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.1";
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!");