@loaders.gl/textures
Version:
Framework-independent loaders for compressed and super compressed (basis) textures
23 lines • 672 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import { VERSION } from "./lib/utils/version.js";
import { isHDR, parseHDR } from "./lib/parsers/parse-hdr.js";
export const RadianceHDRLoader = {
dataType: null,
batchType: null,
name: 'Radiance HDR',
id: 'hdr',
module: 'textures',
version: VERSION,
extensions: ['hdr'],
mimeTypes: ['image/vnd.radiance', 'image/x-hdr', 'application/octet-stream'],
binary: true,
tests: [isHDR],
options: {
hdr: {}
},
parseSync: parseHDR,
parse: async (arrayBuffer) => parseHDR(arrayBuffer)
};
//# sourceMappingURL=radiance-hdr-loader.js.map