@galacean/engine-loader 1.3.0-alpha.1 → 1.3.0-alpha.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/dist/main.js +27 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +27 -2
- package/dist/module.js +27 -2
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/resource-deserialize/resources/schema/SceneSchema.d.ts +17 -1
- package/types/gltf/GLTFParser.d.ts +0 -9
- package/types/gltf/GLTFPipeline.d.ts +0 -23
- package/types/gltf/GLTFUtil.d.ts +0 -53
- package/types/gltf/Schema.d.ts +0 -814
- package/types/gltf/extensions/ExtensionParser.d.ts +0 -8
- package/types/gltf/extensions/KHR_draco_mesh_compression.d.ts +0 -1
- package/types/gltf/extensions/Schema.d.ts +0 -142
- package/types/gltf/parser/AnimationParser.d.ts +0 -7
- package/types/gltf/parser/BufferParser.d.ts +0 -7
- package/types/gltf/parser/EntityParser.d.ts +0 -9
- package/types/gltf/parser/MaterialParser.d.ts +0 -8
- package/types/gltf/parser/MeshParser.d.ts +0 -13
- package/types/gltf/parser/Parser.d.ts +0 -21
- package/types/gltf/parser/ParserContext.d.ts +0 -46
- package/types/gltf/parser/SceneParser.d.ts +0 -11
- package/types/gltf/parser/SkinParser.d.ts +0 -6
- package/types/gltf/parser/TextureParser.d.ts +0 -8
- package/types/gltf/parser/Validator.d.ts +0 -5
- package/types/ktx2/BinomialLLCTranscoder/BinomialLLCTranscoder.d.ts +0 -13
- package/types/ktx2/BinomialLLCTranscoder/TranscodeWorkerCode.d.ts +0 -33
- package/types/ktx2/KhronosTranscoder/KhronosTranscoder.d.ts +0 -17
- package/types/ktx2/KhronosTranscoder/TranscoderWorkerCode.d.ts +0 -34
- package/types/ktx2/TranscodeResult.d.ts +0 -10
- package/types/ktx2/constants.d.ts +0 -7
- package/types/ktx2/zstddec.d.ts +0 -62
- package/types/resource-deserialize/resources/animationClip/ComponentMap.d.ts +0 -2
- package/types/resource-deserialize/resources/parser/PrefabParser.d.ts +0 -5
- package/types/resource-deserialize/resources/prefab/PrefabDesign.d.ts +0 -70
- package/types/resource-deserialize/resources/prefab/PrefabParser.d.ts +0 -14
- package/types/resource-deserialize/resources/prefab/PrefabParserContext.d.ts +0 -5
- package/types/resource-deserialize/resources/prefab/ReflectionParser.d.ts +0 -14
- package/types/resource-deserialize/resources/scene/SceneParserContext.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-loader",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.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.0-alpha.
|
|
19
|
-
"@galacean/engine-math": "1.3.0-alpha.
|
|
20
|
-
"@galacean/engine-rhi-webgl": "1.3.0-alpha.
|
|
18
|
+
"@galacean/engine-core": "1.3.0-alpha.3",
|
|
19
|
+
"@galacean/engine-math": "1.3.0-alpha.3",
|
|
20
|
+
"@galacean/engine-rhi-webgl": "1.3.0-alpha.3"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"b:types": "tsc"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackgroundMode, BackgroundTextureFillMode, DiffuseMode, FogMode, ShadowCascadesMode, ShadowResolution } from "@galacean/engine-core";
|
|
1
|
+
import { BackgroundMode, BackgroundTextureFillMode, DiffuseMode, FogMode, ShadowCascadesMode, ShadowResolution, TonemappingMode } from "@galacean/engine-core";
|
|
2
2
|
import type { IReferable } from "@galacean/engine-core/types/asset/IReferable";
|
|
3
3
|
import type { IColor, IHierarchyFile, IVector3 } from "./BasicSchema";
|
|
4
4
|
export declare enum SpecularMode {
|
|
@@ -42,6 +42,22 @@ export interface IScene extends IHierarchyFile {
|
|
|
42
42
|
fogDensity: number;
|
|
43
43
|
fogColor: IColor;
|
|
44
44
|
};
|
|
45
|
+
postProcess?: {
|
|
46
|
+
isActive: boolean;
|
|
47
|
+
bloom: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
threshold: number;
|
|
50
|
+
scatter: number;
|
|
51
|
+
intensity: number;
|
|
52
|
+
tint: IColor;
|
|
53
|
+
dirtTexture: IReferable;
|
|
54
|
+
dirtIntensity: number;
|
|
55
|
+
};
|
|
56
|
+
tonemapping: {
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
mode: TonemappingMode;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
45
61
|
};
|
|
46
62
|
files: Array<{
|
|
47
63
|
id: string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AssetPromise } from "@galacean/engine-core";
|
|
2
|
-
import { GLTFResource } from "./GLTFResource";
|
|
3
|
-
import { ParserContext } from "./parser/ParserContext";
|
|
4
|
-
export declare class GLTFParser {
|
|
5
|
-
static defaultPipeline: GLTFParser;
|
|
6
|
-
private _pipes;
|
|
7
|
-
private constructor();
|
|
8
|
-
parse(context: ParserContext): AssetPromise<GLTFResource>;
|
|
9
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AssetPromise } from "@galacean/engine-core";
|
|
2
|
-
import { GLTFResource } from "./GLTFResource";
|
|
3
|
-
import { GLTFParser } from "./parser/GLTFParser";
|
|
4
|
-
import { GLTFParserContext } from "./parser/GLTFParserContext";
|
|
5
|
-
/**
|
|
6
|
-
* GLTF pipeline.
|
|
7
|
-
*/
|
|
8
|
-
export declare class GLTFPipeline {
|
|
9
|
-
/**
|
|
10
|
-
* Default pipeline.
|
|
11
|
-
*/
|
|
12
|
-
static defaultPipeline: GLTFPipeline;
|
|
13
|
-
private _parsers;
|
|
14
|
-
/**
|
|
15
|
-
* Constructor of GLTFPipeline.
|
|
16
|
-
* @param parsers - Parsers to be executed in order
|
|
17
|
-
*/
|
|
18
|
-
constructor(...parsers: (new () => GLTFParser)[]);
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
_parse(context: GLTFParserContext): AssetPromise<GLTFResource>;
|
|
23
|
-
}
|
package/types/gltf/GLTFUtil.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { IndexFormat, TypedArray, VertexElementFormat } from "@galacean/engine-core";
|
|
2
|
-
import { Color, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
|
|
3
|
-
import { BufferInfo, ParserContext } from "./parser/ParserContext";
|
|
4
|
-
import { AccessorComponentType, AccessorType, IAccessor, IBufferView, IGLTF } from "./Schema";
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare class GLTFUtil {
|
|
9
|
-
static floatBufferToVector2Array(buffer: Float32Array): Vector2[];
|
|
10
|
-
static floatBufferToVector3Array(buffer: Float32Array): Vector3[];
|
|
11
|
-
static floatBufferToVector4Array(buffer: Float32Array): Vector4[];
|
|
12
|
-
static floatBufferToColorArray(buffer: Float32Array, isColor3: boolean): Color[];
|
|
13
|
-
/**
|
|
14
|
-
* Parse binary text for glb loader.
|
|
15
|
-
*/
|
|
16
|
-
static decodeText(array: Uint8Array): string;
|
|
17
|
-
/**
|
|
18
|
-
* Get the number of bytes occupied by accessor type.
|
|
19
|
-
*/
|
|
20
|
-
static getAccessorTypeSize(accessorType: AccessorType): number;
|
|
21
|
-
/**
|
|
22
|
-
* Get the TypedArray corresponding to the component type.
|
|
23
|
-
*/
|
|
24
|
-
static getComponentType(componentType: AccessorComponentType): Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor;
|
|
25
|
-
static getNormalizedComponentScale(componentType: AccessorComponentType): number;
|
|
26
|
-
static getAccessorBuffer(context: ParserContext, gltf: IGLTF, accessor: IAccessor): BufferInfo;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated
|
|
29
|
-
* Get accessor data.
|
|
30
|
-
*/
|
|
31
|
-
static getAccessorData(gltf: IGLTF, accessor: IAccessor, buffers: ArrayBuffer[]): TypedArray;
|
|
32
|
-
static getBufferViewData(bufferView: IBufferView, buffers: ArrayBuffer[]): ArrayBuffer;
|
|
33
|
-
/**
|
|
34
|
-
* Get accessor data.
|
|
35
|
-
*/
|
|
36
|
-
static processingSparseData(gltf: IGLTF, accessor: IAccessor, buffers: ArrayBuffer[], originData: TypedArray): TypedArray;
|
|
37
|
-
static getIndexFormat(type: AccessorComponentType): IndexFormat;
|
|
38
|
-
static getElementFormat(type: AccessorComponentType, size: number, normalized?: boolean): VertexElementFormat;
|
|
39
|
-
/**
|
|
40
|
-
* Load image buffer
|
|
41
|
-
*/
|
|
42
|
-
static loadImageBuffer(imageBuffer: ArrayBuffer, type: string): Promise<HTMLImageElement>;
|
|
43
|
-
static isAbsoluteUrl(url: string): boolean;
|
|
44
|
-
static parseRelativeUrl(baseUrl: string, relativeUrl: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* Parse the glb format.
|
|
47
|
-
*/
|
|
48
|
-
static parseGLB(glb: ArrayBuffer): {
|
|
49
|
-
gltf: IGLTF;
|
|
50
|
-
buffers: ArrayBuffer[];
|
|
51
|
-
};
|
|
52
|
-
private static _formatRelativePath;
|
|
53
|
-
}
|