@galacean/engine-loader 1.3.1 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-loader",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -15,9 +15,9 @@
15
15
  "types/**/*"
16
16
  ],
17
17
  "dependencies": {
18
- "@galacean/engine-core": "1.3.1",
19
- "@galacean/engine-math": "1.3.1",
20
- "@galacean/engine-rhi-webgl": "1.3.1"
18
+ "@galacean/engine-core": "1.3.3",
19
+ "@galacean/engine-math": "1.3.3",
20
+ "@galacean/engine-rhi-webgl": "1.3.3"
21
21
  },
22
22
  "scripts": {
23
23
  "b:types": "tsc"
@@ -724,7 +724,7 @@ export interface ITexture extends IChildRootProperty {
724
724
  /**
725
725
  * The index of the image used by this texture
726
726
  */
727
- source: number;
727
+ source?: number;
728
728
  }
729
729
  /**
730
730
  * Reference to a texture
@@ -0,0 +1 @@
1
+ export {};
@@ -15,5 +15,6 @@ import "./GALACEAN_materials_remap";
15
15
  import "./GALACEAN_animation_event";
16
16
  import "./EXT_meshopt_compression";
17
17
  import "./KHR_materials_anisotropy";
18
+ import "./EXT_texture_webp";
18
19
  export { GLTFExtensionParser, GLTFExtensionMode } from "./GLTFExtensionParser";
19
20
  export * from "./GLTFExtensionSchema";
@@ -1,4 +1,4 @@
1
- import { Texture, TextureWrapMode } from "@galacean/engine-core";
1
+ import { Texture, Texture2D, TextureWrapMode } from "@galacean/engine-core";
2
2
  import { GLTFParser } from "./GLTFParser";
3
3
  import { GLTFParserContext } from "./GLTFParserContext";
4
4
  export declare class GLTFTextureParser extends GLTFParser {
@@ -8,5 +8,7 @@ export declare class GLTFTextureParser extends GLTFParser {
8
8
  33648: TextureWrapMode;
9
9
  10497: TextureWrapMode;
10
10
  };
11
- parse(context: GLTFParserContext, index: number): Promise<Texture>;
11
+ /** @internal */
12
+ static _parseTexture(context: GLTFParserContext, imageIndex: number, textureIndex: number, sampler?: number, textureName?: string): Promise<Texture2D>;
13
+ parse(context: GLTFParserContext, textureIndex: number): Promise<Texture>;
12
14
  }