@galacean/effects-plugin-model 1.5.1 → 1.5.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/alipay.js +3 -3
- package/dist/alipay.mjs +3 -3
- package/dist/index.js +4 -4
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +4 -4
- package/dist/loader.mjs +3 -3
- package/package.json +4 -4
package/dist/index.mjs
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: v1.5.
|
|
6
|
+
* Version: v1.5.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, TextureSourceType, Texture, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Geometry, Material, Mesh, Player, Renderer, getDefaultTextureFactory, loadImage, RenderPassAttachmentStorageType, addItem, removeItem, TimelineComponent, VFXItem, Item, HitTestType, AbstractPlugin, registerPlugin, logger } from '@galacean/effects';
|
|
@@ -9517,11 +9517,11 @@ var TextureManager = /** @class */ (function () {
|
|
|
9517
9517
|
this._textureMap.clear();
|
|
9518
9518
|
};
|
|
9519
9519
|
TextureManager.prototype.addTexture = function (matIndex, texIndex, tex, isBaseColor) {
|
|
9520
|
-
var index = isBaseColor ? matIndex * 100000 + texIndex : texIndex;
|
|
9520
|
+
var index = isBaseColor ? (matIndex + 1) * 100000 + texIndex : texIndex;
|
|
9521
9521
|
this._textureMap.set(index, tex);
|
|
9522
9522
|
};
|
|
9523
9523
|
TextureManager.prototype.getTexture = function (matIndex, texIndex, isBaseColor) {
|
|
9524
|
-
var index = isBaseColor ? matIndex * 100000 + texIndex : texIndex;
|
|
9524
|
+
var index = isBaseColor ? (matIndex + 1) * 100000 + texIndex : texIndex;
|
|
9525
9525
|
return this._textureMap.get(index);
|
|
9526
9526
|
};
|
|
9527
9527
|
return TextureManager;
|
|
@@ -10076,7 +10076,7 @@ var GLTFHelper = /** @class */ (function () {
|
|
|
10076
10076
|
|
|
10077
10077
|
registerPlugin('tree', ModelTreePlugin, ModelTreeVFXItem, true);
|
|
10078
10078
|
registerPlugin('model', ModelPlugin, ModelVFXItem);
|
|
10079
|
-
var version = "1.5.
|
|
10079
|
+
var version = "1.5.2";
|
|
10080
10080
|
logger.info('plugin model version: ' + version);
|
|
10081
10081
|
|
|
10082
10082
|
export { BoxMesh, CameraGestureHandlerImp, CameraGestureType, CheckerHelper, CompositionCache, CompositionHitTest, FBOOptions, Float16ArrayWrapper, GeometryBoxProxy, HitTestingProxy, HookOGLFunc, InterpolationSampler, LoaderHelper, LoaderImpl, MeshHelper, ModelPlugin, ModelTreeItem, ModelTreePlugin, ModelTreeVFXItem, ModelVFXItem, PAnimInterpType, PAnimPathType, PAnimTexture, PAnimTrack, PAnimation, PAnimationManager, PAnimationSystem, PBlendMode, PCamera, PCameraManager, PCoordinate, PEntity, PFaceSideMode, PGeometry, PGlobalState, PLight, PLightManager, PLightType, PMaterialBase, PMaterialPBR, PMaterialSkyboxFilter, PMaterialType, PMaterialUnlit, PMesh, PMorph, PObject, PObjectType, PPrimitive, PSceneManager, PShaderManager, PShadowType, PSkin, PSkybox, PSkyboxCreator, PSkyboxType, PTextureType, PTransform, PluginHelper, RayBoxTesting, RayIntersectsBoxWithRotation, RayTriangleTesting, TextureDataMode, ToggleItemBounding, TwoStatesSet, VFX_ITEM_TYPE_3D, VertexAttribBuffer, WebGLHelper, WebHelper, createAnimationSampler, createInternalMaterial, createPluginMaterial, getDefaultEffectsGLTFLoader, getDiffuseOnlyShaderCode, getGaussianBlurShaderCodeV1, getGaussianBlurShaderCodeV2, getKawaseBlurShaderCode, getNormalVisShaderCode, getPBRPassShaderCode, getPMeshList, getQuadFilterShaderCode, getRendererGPUInfo, getShadowPassShaderCode, getSimpleFilterShaderCode, getSkyBoxShaderCode, getTransparecyBaseShader, getTransparecyFilterShader, setDefaultEffectsGLTFLoader, version };
|
package/dist/loader.mjs
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: v1.5.
|
|
6
|
+
* Version: v1.5.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { math, Transform, spec, PLAYER_OPTIONS_ENV_EDITOR, glContext, TextureSourceType, Texture, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Geometry, Renderer, Mesh, getDefaultTextureFactory, Player, loadImage } from '@galacean/effects';
|
|
@@ -5263,11 +5263,11 @@ var TextureManager = /** @class */ (function () {
|
|
|
5263
5263
|
this._textureMap.clear();
|
|
5264
5264
|
};
|
|
5265
5265
|
TextureManager.prototype.addTexture = function (matIndex, texIndex, tex, isBaseColor) {
|
|
5266
|
-
var index = isBaseColor ? matIndex * 100000 + texIndex : texIndex;
|
|
5266
|
+
var index = isBaseColor ? (matIndex + 1) * 100000 + texIndex : texIndex;
|
|
5267
5267
|
this._textureMap.set(index, tex);
|
|
5268
5268
|
};
|
|
5269
5269
|
TextureManager.prototype.getTexture = function (matIndex, texIndex, isBaseColor) {
|
|
5270
|
-
var index = isBaseColor ? matIndex * 100000 + texIndex : texIndex;
|
|
5270
|
+
var index = isBaseColor ? (matIndex + 1) * 100000 + texIndex : texIndex;
|
|
5271
5271
|
return this._textureMap.get(index);
|
|
5272
5272
|
};
|
|
5273
5273
|
return TextureManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-plugin-model",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Galacean Effects player model plugin",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@galacean/effects-helper": "1.5.
|
|
41
|
+
"@galacean/effects-helper": "1.5.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@vvfx/resource-detection": "0.4.2-alpha.22",
|
|
45
45
|
"@types/hammerjs": "^2.0.45",
|
|
46
46
|
"fpsmeter": "^0.3.1",
|
|
47
47
|
"hammerjs": "^2.0.8",
|
|
48
|
-
"@galacean/effects": "1.5.
|
|
49
|
-
"@galacean/effects
|
|
48
|
+
"@galacean/effects-plugin-editor-gizmo": "1.5.2",
|
|
49
|
+
"@galacean/effects": "1.5.2"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"dev": "vite",
|