|
|
|
@ -12,21 +12,21 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
CompressedTexture,
|
|
|
|
|
|
|
|
CompressedArrayTexture,
|
|
|
|
CompressedArrayTexture,
|
|
|
|
CompressedCubeTexture,
|
|
|
|
CompressedCubeTexture,
|
|
|
|
|
|
|
|
CompressedTexture,
|
|
|
|
Data3DTexture,
|
|
|
|
Data3DTexture,
|
|
|
|
DataTexture,
|
|
|
|
DataTexture,
|
|
|
|
DisplayP3ColorSpace,
|
|
|
|
DisplayP3ColorSpace,
|
|
|
|
FileLoader,
|
|
|
|
FileLoader,
|
|
|
|
FloatType,
|
|
|
|
FloatType,
|
|
|
|
HalfFloatType,
|
|
|
|
HalfFloatType,
|
|
|
|
NoColorSpace,
|
|
|
|
LinearDisplayP3ColorSpace,
|
|
|
|
LinearFilter,
|
|
|
|
LinearFilter,
|
|
|
|
LinearMipmapLinearFilter,
|
|
|
|
LinearMipmapLinearFilter,
|
|
|
|
LinearDisplayP3ColorSpace,
|
|
|
|
|
|
|
|
LinearSRGBColorSpace,
|
|
|
|
LinearSRGBColorSpace,
|
|
|
|
Loader,
|
|
|
|
Loader,
|
|
|
|
|
|
|
|
NoColorSpace,
|
|
|
|
RedFormat,
|
|
|
|
RedFormat,
|
|
|
|
RGB_ETC1_Format,
|
|
|
|
RGB_ETC1_Format,
|
|
|
|
RGB_ETC2_Format,
|
|
|
|
RGB_ETC2_Format,
|
|
|
|
@ -36,8 +36,8 @@ import {
|
|
|
|
RGBA_BPTC_Format,
|
|
|
|
RGBA_BPTC_Format,
|
|
|
|
RGBA_ETC2_EAC_Format,
|
|
|
|
RGBA_ETC2_EAC_Format,
|
|
|
|
RGBA_PVRTC_4BPPV1_Format,
|
|
|
|
RGBA_PVRTC_4BPPV1_Format,
|
|
|
|
RGBA_S3TC_DXT5_Format,
|
|
|
|
|
|
|
|
RGBA_S3TC_DXT1_Format,
|
|
|
|
RGBA_S3TC_DXT1_Format,
|
|
|
|
|
|
|
|
RGBA_S3TC_DXT5_Format,
|
|
|
|
RGBAFormat,
|
|
|
|
RGBAFormat,
|
|
|
|
RGFormat,
|
|
|
|
RGFormat,
|
|
|
|
SRGBColorSpace,
|
|
|
|
SRGBColorSpace,
|
|
|
|
@ -45,12 +45,16 @@ import {
|
|
|
|
} from 'three';
|
|
|
|
} from 'three';
|
|
|
|
import {WorkerPool} from '../utils/WorkerPool.js';
|
|
|
|
import {WorkerPool} from '../utils/WorkerPool.js';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
read,
|
|
|
|
|
|
|
|
KHR_DF_FLAG_ALPHA_PREMULTIPLIED,
|
|
|
|
KHR_DF_FLAG_ALPHA_PREMULTIPLIED,
|
|
|
|
|
|
|
|
KHR_DF_PRIMARIES_BT709,
|
|
|
|
|
|
|
|
KHR_DF_PRIMARIES_DISPLAYP3,
|
|
|
|
|
|
|
|
KHR_DF_PRIMARIES_UNSPECIFIED,
|
|
|
|
KHR_DF_TRANSFER_SRGB,
|
|
|
|
KHR_DF_TRANSFER_SRGB,
|
|
|
|
KHR_SUPERCOMPRESSION_NONE,
|
|
|
|
KHR_SUPERCOMPRESSION_NONE,
|
|
|
|
KHR_SUPERCOMPRESSION_ZSTD,
|
|
|
|
KHR_SUPERCOMPRESSION_ZSTD,
|
|
|
|
VK_FORMAT_UNDEFINED,
|
|
|
|
read,
|
|
|
|
|
|
|
|
VK_FORMAT_ASTC_6x6_SRGB_BLOCK,
|
|
|
|
|
|
|
|
VK_FORMAT_ASTC_6x6_UNORM_BLOCK,
|
|
|
|
VK_FORMAT_R16_SFLOAT,
|
|
|
|
VK_FORMAT_R16_SFLOAT,
|
|
|
|
VK_FORMAT_R16G16_SFLOAT,
|
|
|
|
VK_FORMAT_R16G16_SFLOAT,
|
|
|
|
VK_FORMAT_R16G16B16A16_SFLOAT,
|
|
|
|
VK_FORMAT_R16G16B16A16_SFLOAT,
|
|
|
|
@ -63,11 +67,7 @@ import {
|
|
|
|
VK_FORMAT_R8G8_UNORM,
|
|
|
|
VK_FORMAT_R8G8_UNORM,
|
|
|
|
VK_FORMAT_R8G8B8A8_SRGB,
|
|
|
|
VK_FORMAT_R8G8B8A8_SRGB,
|
|
|
|
VK_FORMAT_R8G8B8A8_UNORM,
|
|
|
|
VK_FORMAT_R8G8B8A8_UNORM,
|
|
|
|
VK_FORMAT_ASTC_6x6_SRGB_BLOCK,
|
|
|
|
VK_FORMAT_UNDEFINED
|
|
|
|
VK_FORMAT_ASTC_6x6_UNORM_BLOCK,
|
|
|
|
|
|
|
|
KHR_DF_PRIMARIES_UNSPECIFIED,
|
|
|
|
|
|
|
|
KHR_DF_PRIMARIES_BT709,
|
|
|
|
|
|
|
|
KHR_DF_PRIMARIES_DISPLAYP3
|
|
|
|
|
|
|
|
} from '../libs/ktx-parse.module.js';
|
|
|
|
} from '../libs/ktx-parse.module.js';
|
|
|
|
import {ZSTDDecoder} from '../libs/zstddec.module.js';
|
|
|
|
import {ZSTDDecoder} from '../libs/zstddec.module.js';
|
|
|
|
|
|
|
|
|
|
|
|
|