@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.
@@ -1,4 +1,4 @@
1
- import type { Scene, Attribute, GeometryProps, TextureSourceOptions, TextureSourceCubeData, TextureConfigOptions, Engine, math, RenderPass } from '@galacean/effects';
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: Attribute, inArray: spec.TypedArray): void;
422
+ create(inAttrib: AttributeLayout, inArray: spec.TypedArray): void;
416
423
  getData(index: number): [number, number, number, number] | undefined;
417
424
  getLength(): number;
418
425
  }