@galacean/effects-plugin-model 2.10.0-alpha.1 → 2.10.0-alpha.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 +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +99 -128
- 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 +100 -129
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +98 -121
- package/dist/loader.mjs.map +1 -1
- package/dist/utility/plugin-helper.d.ts +9 -2
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Scene,
|
|
1
|
+
import type { Scene, GeometryProps, TextureSourceOptions, TextureSourceCubeData, TextureConfigOptions, Engine, math, RenderPass } from '@galacean/effects';
|
|
2
2
|
import { Player, spec, Transform, Material, Mesh, Texture, Geometry } from '@galacean/effects';
|
|
3
3
|
import type { GLTFCamera, GLTFImage, GLTFLight, GLTFTexture } from '@vvfx/resource-detection';
|
|
4
4
|
import type { ModelAnimationOptions, ModelMeshOptions, ModelMaterialOptions, ModelLightOptions, ModelCameraOptions, ModelSkyboxOptions, ModelSkinOptions, ModelPrimitiveOptions, ModelTextureTransform, ModelTreeOptions, ModelAnimTrackOptions, ModelMeshComponent } from '../index';
|
|
@@ -6,6 +6,13 @@ import type { PMaterialBase, PImageBufferData } from '../runtime';
|
|
|
6
6
|
import { Matrix3, Matrix4, Vector3, Vector4 } from '../runtime';
|
|
7
7
|
type Box3 = math.Box3;
|
|
8
8
|
type VertexArray = Float32Array | Int32Array | Int16Array | Int8Array | Uint32Array | Uint16Array | Uint8Array;
|
|
9
|
+
interface AttributeLayout {
|
|
10
|
+
type: number;
|
|
11
|
+
size: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
stride?: number;
|
|
14
|
+
normalize?: boolean;
|
|
15
|
+
}
|
|
9
16
|
/**
|
|
10
17
|
* WebGL 辅助类,负责 WebGL 相关对象的创建
|
|
11
18
|
*/
|
|
@@ -412,7 +419,7 @@ declare class AttributeArray {
|
|
|
412
419
|
signed: boolean;
|
|
413
420
|
compressed: boolean;
|
|
414
421
|
compressScale: number;
|
|
415
|
-
create(inAttrib:
|
|
422
|
+
create(inAttrib: AttributeLayout, inArray: spec.TypedArray): void;
|
|
416
423
|
getData(index: number): [number, number, number, number] | undefined;
|
|
417
424
|
getLength(): number;
|
|
418
425
|
}
|