@galacean/effects-plugin-model 2.0.0-alpha.31 → 2.0.0-alpha.32
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 +13 -3
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +13 -3
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +13 -3
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +13 -3
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +14 -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 +14 -4
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +14 -4
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/model-item.d.ts +5 -0
- package/dist/runtime/mesh.d.ts +4 -0
- package/dist/weapp.js +13 -3
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +13 -3
- package/dist/weapp.mjs.map +1 -1
- package/package.json +4 -4
package/dist/alipay.mjs
CHANGED
|
@@ -2577,12 +2577,16 @@ function _assert_this_initialized(self) {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
};
|
|
2579
2579
|
/**
|
|
2580
|
+
* 更新骨骼动画
|
|
2581
|
+
*/ _proto.lateUpdate = function lateUpdate() {
|
|
2582
|
+
var _this_skin;
|
|
2583
|
+
(_this_skin = this.skin) == null ? void 0 : _this_skin.updateSkinMatrices();
|
|
2584
|
+
};
|
|
2585
|
+
/**
|
|
2580
2586
|
* 渲染 Mesh 对象,需要将内部相关数据传给渲染器
|
|
2581
2587
|
* @param scene - 场景
|
|
2582
2588
|
* @param renderer - 渲染器
|
|
2583
2589
|
*/ _proto.render = function render(scene, renderer) {
|
|
2584
|
-
var _this_skin;
|
|
2585
|
-
(_this_skin = this.skin) == null ? void 0 : _this_skin.updateSkinMatrices();
|
|
2586
2590
|
this.updateMaterial(scene);
|
|
2587
2591
|
this.subMeshes.forEach(function(subMesh, index) {
|
|
2588
2592
|
renderer.drawGeometry(subMesh.getEffectsGeometry(), subMesh.getEffectsMaterial(), index);
|
|
@@ -4465,6 +4469,12 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
4465
4469
|
this.content.update();
|
|
4466
4470
|
};
|
|
4467
4471
|
/**
|
|
4472
|
+
* 组件晚更新,晚更新内部对象状态
|
|
4473
|
+
* @param dt - 更新间隔
|
|
4474
|
+
*/ _proto.lateUpdate = function lateUpdate(dt) {
|
|
4475
|
+
this.content.lateUpdate();
|
|
4476
|
+
};
|
|
4477
|
+
/**
|
|
4468
4478
|
* 组件渲染,需要检查可见性
|
|
4469
4479
|
* @param renderer - 渲染器
|
|
4470
4480
|
* @returns
|
|
@@ -13798,7 +13808,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13798
13808
|
|
|
13799
13809
|
registerPlugin("tree", ModelTreePlugin, VFXItem, true);
|
|
13800
13810
|
registerPlugin("model", ModelPlugin, VFXItem);
|
|
13801
|
-
var version = "2.0.0-alpha.
|
|
13811
|
+
var version = "2.0.0-alpha.32";
|
|
13802
13812
|
logger.info("Plugin model version: " + version + ".");
|
|
13803
13813
|
if (version !== EFFECTS.version) {
|
|
13804
13814
|
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!");
|