@galacean/engine-loader 2.0.0-alpha.60 → 2.0.0-alpha.61
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 +26 -26
- package/dist/main.js.map +1 -1
- package/dist/module.js +26 -26
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/HDRDecoder.d.ts +3 -3
- package/types/TextureLoader.d.ts +1 -1
- package/types/ktx2/KTX2Loader.d.ts +1 -1
- package/types/ktx2/KTX2TargetFormat.d.ts +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-loader",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.61",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"libs/**/*"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@galacean/engine-core": "2.0.0-alpha.
|
|
23
|
-
"@galacean/engine-
|
|
24
|
-
"@galacean/engine-
|
|
22
|
+
"@galacean/engine-core": "2.0.0-alpha.61",
|
|
23
|
+
"@galacean/engine-rhi-webgl": "2.0.0-alpha.61",
|
|
24
|
+
"@galacean/engine-math": "2.0.0-alpha.61"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
package/types/HDRDecoder.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* HDR (Radiance RGBE) image decoder.
|
|
3
3
|
*
|
|
4
4
|
* Decodes .hdr files into pixel data. Supports parsing the header
|
|
5
|
-
* and decoding RLE-compressed RGBE scanlines into
|
|
5
|
+
* and decoding RLE-compressed RGBE scanlines into R16G16B16A16_SFloat half-float pixels.
|
|
6
6
|
*/
|
|
7
7
|
export declare class HDRDecoder {
|
|
8
8
|
private static _float2HalfTables;
|
|
@@ -14,7 +14,7 @@ export declare class HDRDecoder {
|
|
|
14
14
|
*/
|
|
15
15
|
static parseHeader(uint8array: Uint8Array): IHDRHeader;
|
|
16
16
|
/**
|
|
17
|
-
* Decode an HDR file buffer into
|
|
17
|
+
* Decode an HDR file buffer into R16G16B16A16_SFloat half-float pixel data.
|
|
18
18
|
* @param buffer - The full HDR file as Uint8Array.
|
|
19
19
|
* @returns Object with width, height, and half-float pixel data.
|
|
20
20
|
*/
|
|
@@ -25,7 +25,7 @@ export declare class HDRDecoder {
|
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* @internal
|
|
28
|
-
* Convert RGBE pixel data to
|
|
28
|
+
* Convert RGBE pixel data to R16G16B16A16_SFloat half-float.
|
|
29
29
|
*/
|
|
30
30
|
static _rgbeToHalfFloat(rgbe: Uint8Array, width: number, height: number): Uint16Array;
|
|
31
31
|
/**
|
package/types/TextureLoader.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { TextureFilterMode, TextureFormat, TextureWrapMode } from "@galacean/eng
|
|
|
3
3
|
* Texture loader params interface.
|
|
4
4
|
*/
|
|
5
5
|
export interface TextureParams {
|
|
6
|
-
/** Texture format. default `TextureFormat.
|
|
6
|
+
/** Texture format. default `TextureFormat.R8G8B8A8_UNorm` */
|
|
7
7
|
format: TextureFormat;
|
|
8
8
|
/** Whether to use multi-level texture, default is true. */
|
|
9
9
|
mipmap: boolean;
|
|
@@ -37,7 +37,7 @@ export declare class KTX2Loader extends Loader<Texture2D | TextureCube> {
|
|
|
37
37
|
* KTX2 loader params interface.
|
|
38
38
|
*/
|
|
39
39
|
export interface KTX2Params {
|
|
40
|
-
/** Priority transcoding format queue which is preferred options, default is BC7/ASTC/BC3_BC1/ETC/PVRTC/
|
|
40
|
+
/** Priority transcoding format queue which is preferred options, default is BC7/ASTC/BC3_BC1/ETC/PVRTC/R8G8B8A8_UNorm. */
|
|
41
41
|
/** @deprecated */
|
|
42
42
|
priorityFormats: KTX2TargetFormat[];
|
|
43
43
|
}
|
|
@@ -12,16 +12,16 @@ export declare enum KTX2TargetFormat {
|
|
|
12
12
|
PVRTC = 3,
|
|
13
13
|
/** RGB(A) compressed format, 4 bits per pixel if no alpha channel, 8 bits per pixel if has alpha channel. */
|
|
14
14
|
ETC = 4,
|
|
15
|
-
/** R
|
|
16
|
-
|
|
17
|
-
/** RG
|
|
18
|
-
|
|
19
|
-
/** RGBA
|
|
20
|
-
|
|
15
|
+
/** R 8-bit unsigned normalized format. */
|
|
16
|
+
R8_UNorm = 5,
|
|
17
|
+
/** RG 8-bit unsigned normalized format. */
|
|
18
|
+
R8G8_UNorm = 6,
|
|
19
|
+
/** RGBA 8-bit unsigned normalized format. */
|
|
20
|
+
R8G8B8A8_UNorm = 7,
|
|
21
21
|
/** RGB HDR compressed format, 8 bits per pixel. */
|
|
22
22
|
BC6H = 8,
|
|
23
23
|
/** HDR RGB(A) compressed format, 128 bits per 4x4 pixel block (currently UASTC HDR 4x4 encoders are only RGB). */
|
|
24
24
|
ASTC_HDR_4x4 = 9,
|
|
25
|
-
/** RGBA
|
|
26
|
-
|
|
25
|
+
/** RGBA 16-bit signed float format. */
|
|
26
|
+
R16G16B16A16_SFloat = 10
|
|
27
27
|
}
|