@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.js
CHANGED
|
@@ -2600,12 +2600,16 @@ function _assert_this_initialized(self) {
|
|
|
2600
2600
|
}
|
|
2601
2601
|
};
|
|
2602
2602
|
/**
|
|
2603
|
+
* 更新骨骼动画
|
|
2604
|
+
*/ _proto.lateUpdate = function lateUpdate() {
|
|
2605
|
+
var _this_skin;
|
|
2606
|
+
(_this_skin = this.skin) == null ? void 0 : _this_skin.updateSkinMatrices();
|
|
2607
|
+
};
|
|
2608
|
+
/**
|
|
2603
2609
|
* 渲染 Mesh 对象,需要将内部相关数据传给渲染器
|
|
2604
2610
|
* @param scene - 场景
|
|
2605
2611
|
* @param renderer - 渲染器
|
|
2606
2612
|
*/ _proto.render = function render(scene, renderer) {
|
|
2607
|
-
var _this_skin;
|
|
2608
|
-
(_this_skin = this.skin) == null ? void 0 : _this_skin.updateSkinMatrices();
|
|
2609
2613
|
this.updateMaterial(scene);
|
|
2610
2614
|
this.subMeshes.forEach(function(subMesh, index) {
|
|
2611
2615
|
renderer.drawGeometry(subMesh.getEffectsGeometry(), subMesh.getEffectsMaterial(), index);
|
|
@@ -4488,6 +4492,12 @@ exports.ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
4488
4492
|
this.content.update();
|
|
4489
4493
|
};
|
|
4490
4494
|
/**
|
|
4495
|
+
* 组件晚更新,晚更新内部对象状态
|
|
4496
|
+
* @param dt - 更新间隔
|
|
4497
|
+
*/ _proto.lateUpdate = function lateUpdate(dt) {
|
|
4498
|
+
this.content.lateUpdate();
|
|
4499
|
+
};
|
|
4500
|
+
/**
|
|
4491
4501
|
* 组件渲染,需要检查可见性
|
|
4492
4502
|
* @param renderer - 渲染器
|
|
4493
4503
|
* @returns
|
|
@@ -13821,7 +13831,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13821
13831
|
|
|
13822
13832
|
EFFECTS.registerPlugin("tree", ModelTreePlugin, EFFECTS.VFXItem, true);
|
|
13823
13833
|
EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
|
|
13824
|
-
var version = "2.0.0-alpha.
|
|
13834
|
+
var version = "2.0.0-alpha.32";
|
|
13825
13835
|
EFFECTS.logger.info("Plugin model version: " + version + ".");
|
|
13826
13836
|
if (version !== EFFECTS__namespace.version) {
|
|
13827
13837
|
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!");
|