@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/dist/main.js +47 -57
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +47 -57
- package/dist/module.js +47 -57
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/gltf/GLTFUtils.d.ts +4 -3
- package/types/gltf/parser/GLTFSchemaParser.d.ts +0 -1
- package/types/resource-deserialize/resources/schema/SceneSchema.d.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-loader",
|
|
3
|
-
"version": "1.2.0-
|
|
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-
|
|
19
|
-
"@galacean/engine-
|
|
20
|
-
"@galacean/engine-
|
|
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,
|
|
44
|
-
glTF
|
|
45
|
-
buffers
|
|
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;
|
|
@@ -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<{
|