@galacean/engine-loader 1.2.0-alpha.8 → 1.2.0-beta.0

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.2.0-alpha.8",
3
+ "version": "1.2.0-beta.0",
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.2.0-alpha.8",
19
- "@galacean/engine-math": "1.2.0-alpha.8",
20
- "@galacean/engine-rhi-webgl": "1.2.0-alpha.8"
18
+ "@galacean/engine-core": "1.2.0-beta.0",
19
+ "@galacean/engine-rhi-webgl": "1.2.0-beta.0",
20
+ "@galacean/engine-math": "1.2.0-beta.0"
21
21
  },
22
22
  "scripts": {
23
23
  "b:types": "tsc"
@@ -40,9 +40,10 @@ export declare class GLTFUtils {
40
40
  /**
41
41
  * Parse the glb format.
42
42
  */
43
- static parseGLB(context: GLTFParserContext, glb: ArrayBuffer): {
44
- glTF: IGLTF;
45
- buffers: ArrayBuffer[];
43
+ static parseGLB(context: GLTFParserContext, originBuffer: ArrayBuffer): {
44
+ glTF?: IGLTF;
45
+ buffers?: ArrayBuffer[];
46
+ originBuffer?: ArrayBuffer;
46
47
  };
47
48
  static parseSampler(texture: Texture2D, samplerInfo: ISamplerInfo): void;
48
49
  static getSamplerInfo(sampler: ISampler): ISamplerInfo;
@@ -3,5 +3,4 @@ import { GLTFParser } from "./GLTFParser";
3
3
  import { GLTFParserContext } from "./GLTFParserContext";
4
4
  export declare class GLTFSchemaParser extends GLTFParser {
5
5
  parse(context: GLTFParserContext): Promise<IGLTF>;
6
- private _isGLB;
7
6
  }
@@ -1,4 +1,4 @@
1
- import { BackgroundMode, DiffuseMode, ShadowCascadesMode, ShadowResolution } from "@galacean/engine-core";
1
+ import { BackgroundMode, DiffuseMode, FogMode, ShadowCascadesMode, ShadowResolution } from "@galacean/engine-core";
2
2
  import type { IReferable } from "@galacean/engine-core/types/asset/IReferable";
3
3
  import type { IColor, IPrefabFile, IVector3 } from "./BasicSchema";
4
4
  export declare enum SpecularMode {
@@ -32,6 +32,14 @@ export interface IScene extends IPrefabFile {
32
32
  shadowCascades: ShadowCascadesMode;
33
33
  shadowTwoCascadeSplits: number;
34
34
  shadowFourCascadeSplits: IVector3;
35
+ shadowFadeBorder: number;
36
+ };
37
+ fog?: {
38
+ fogMode: FogMode;
39
+ fogStart: number;
40
+ fogEnd: number;
41
+ fogDensity: number;
42
+ fogColor: IColor;
35
43
  };
36
44
  };
37
45
  files: Array<{