@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/loader.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, spec, PLAYER_OPTIONS_ENV_EDITOR, glContext, Texture, TextureSourceType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, generateGUID, loadImage, effectsClass, VFXItem, ItemBehaviour, AbstractPlugin, registerPlugin, logger, version as version$1, HitTestType, RendererComponent, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Renderer, getDefaultTextureFactory, Player, glType2VertexFormatType, Downloader, getStandardJSON } from '@galacean/effects';
|
|
9
|
+
import { math, Transform, spec, PLAYER_OPTIONS_ENV_EDITOR, glContext, Texture, TextureSourceType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, generateGUID, loadImage, effectsClass, VFXItem, ItemBehaviour, AbstractPlugin, registerPlugin, logger, version as version$1, HitTestType, RendererComponent, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Renderer, getDefaultTextureFactory, Player, glType2VertexFormatType, Downloader, getStandardJSON, isObject } from '@galacean/effects';
|
|
10
10
|
|
|
11
11
|
var Vector2 = math.Vector2, Vector3 = math.Vector3, Vector4 = math.Vector4, Matrix3 = math.Matrix3, Matrix4 = math.Matrix4, Color = math.Color, Euler = math.Euler, EulerOrder = math.EulerOrder, Quaternion = math.Quaternion, Box3 = math.Box3; math.Sphere; math.Ray; var DEG2RAD = math.DEG2RAD;
|
|
12
12
|
|
|
@@ -6974,7 +6974,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
|
|
|
6974
6974
|
|
|
6975
6975
|
registerPlugin("tree", ModelTreePlugin, VFXItem, true);
|
|
6976
6976
|
registerPlugin("model", ModelPlugin, VFXItem);
|
|
6977
|
-
var version = "2.0.0-alpha.
|
|
6977
|
+
var version = "2.0.0-alpha.17";
|
|
6978
6978
|
logger.info("plugin model version: " + version);
|
|
6979
6979
|
if (version !== version$1) {
|
|
6980
6980
|
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!");
|
|
@@ -11683,15 +11683,15 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
11683
11683
|
_proto.processScene = function processScene(sceneData) {
|
|
11684
11684
|
var _this = this;
|
|
11685
11685
|
return _async_to_generator(function() {
|
|
11686
|
-
var sceneJSON, oldScene, binFiles, _iterator, _step, bin, _, newScene;
|
|
11686
|
+
var sceneJSON, _tmp, oldScene, binFiles, _iterator, _step, bin, _, newScene;
|
|
11687
11687
|
return __generator(this, function(_state) {
|
|
11688
11688
|
switch(_state.label){
|
|
11689
11689
|
case 0:
|
|
11690
|
-
if (!
|
|
11690
|
+
if (!isObject(sceneData)) return [
|
|
11691
11691
|
3,
|
|
11692
11692
|
1
|
|
11693
11693
|
];
|
|
11694
|
-
|
|
11694
|
+
_tmp = sceneData;
|
|
11695
11695
|
return [
|
|
11696
11696
|
3,
|
|
11697
11697
|
3
|
|
@@ -11702,9 +11702,10 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
11702
11702
|
_this.loadJSON(sceneData)
|
|
11703
11703
|
];
|
|
11704
11704
|
case 2:
|
|
11705
|
-
|
|
11705
|
+
_tmp = _state.sent();
|
|
11706
11706
|
_state.label = 3;
|
|
11707
11707
|
case 3:
|
|
11708
|
+
sceneJSON = _tmp;
|
|
11708
11709
|
// @ts-expect-error
|
|
11709
11710
|
sceneJSON.textures.forEach(function(tex) {
|
|
11710
11711
|
if (tex.source === undefined) {
|