@galacean/effects-plugin-model 2.0.0-alpha.16 → 2.0.0-alpha.17
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 +6 -5
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +7 -6
- package/dist/alipay.mjs.map +1 -1
- package/dist/gltf/json-converter.d.ts +1 -1
- package/dist/index.js +7 -6
- 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 +8 -7
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +8 -7
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/model-plugin.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Description: Galacean Effects player model plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 飂兮
|
|
6
|
-
* Version: v2.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.17
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, effectsClass, RendererComponent, ItemBehaviour, HitTestType, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, registerPlugin, logger, version as version$1 } from '@galacean/effects';
|
|
9
|
+
import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, effectsClass, RendererComponent, ItemBehaviour, HitTestType, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Player, Renderer, getDefaultTextureFactory, loadImage, generateGUID, VFXItem, AbstractPlugin, glType2VertexFormatType, Downloader, getStandardJSON, isObject, registerPlugin, logger, version as version$1 } from '@galacean/effects';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Model 插件元素类型
|
|
@@ -12015,15 +12015,15 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
12015
12015
|
_proto.processScene = function processScene(sceneData) {
|
|
12016
12016
|
var _this = this;
|
|
12017
12017
|
return _async_to_generator(function() {
|
|
12018
|
-
var sceneJSON, oldScene, binFiles, _iterator, _step, bin, _, newScene;
|
|
12018
|
+
var sceneJSON, _tmp, oldScene, binFiles, _iterator, _step, bin, _, newScene;
|
|
12019
12019
|
return __generator(this, function(_state) {
|
|
12020
12020
|
switch(_state.label){
|
|
12021
12021
|
case 0:
|
|
12022
|
-
if (!
|
|
12022
|
+
if (!isObject(sceneData)) return [
|
|
12023
12023
|
3,
|
|
12024
12024
|
1
|
|
12025
12025
|
];
|
|
12026
|
-
|
|
12026
|
+
_tmp = sceneData;
|
|
12027
12027
|
return [
|
|
12028
12028
|
3,
|
|
12029
12029
|
3
|
|
@@ -12034,9 +12034,10 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
12034
12034
|
_this.loadJSON(sceneData)
|
|
12035
12035
|
];
|
|
12036
12036
|
case 2:
|
|
12037
|
-
|
|
12037
|
+
_tmp = _state.sent();
|
|
12038
12038
|
_state.label = 3;
|
|
12039
12039
|
case 3:
|
|
12040
|
+
sceneJSON = _tmp;
|
|
12040
12041
|
// @ts-expect-error
|
|
12041
12042
|
sceneJSON.textures.forEach(function(tex) {
|
|
12042
12043
|
if (tex.source === undefined) {
|
|
@@ -13365,7 +13366,7 @@ var vertexBufferSemanticMap = {
|
|
|
13365
13366
|
|
|
13366
13367
|
registerPlugin("tree", ModelTreePlugin, VFXItem, true);
|
|
13367
13368
|
registerPlugin("model", ModelPlugin, VFXItem);
|
|
13368
|
-
var version = "2.0.0-alpha.
|
|
13369
|
+
var version = "2.0.0-alpha.17";
|
|
13369
13370
|
logger.info("plugin model version: " + version);
|
|
13370
13371
|
if (version !== version$1) {
|
|
13371
13372
|
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!");
|