@types/three
Version:
TypeScript definitions for three
29 lines (21 loc) • 765 B
TypeScript
import { DataTexture, Loader, LoadingManager, RGBAFormat, TextureDataType } from "three";
interface UltraHDRLoaderTextureData {
width: number;
height: number;
hdrBuffer: Uint16Array | Float32Array;
format: typeof RGBAFormat;
type: TextureDataType;
}
declare class UltraHDRLoader extends Loader<DataTexture> {
type: TextureDataType;
constructor(manager?: LoadingManager);
setDataType(value: TextureDataType): this;
parse(buffer: ArrayBuffer, onLoad: (texData: UltraHDRLoaderTextureData) => void): void;
load(
url: string,
onLoad: (data: DataTexture) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (err: unknown) => void,
): DataTexture;
}
export { UltraHDRLoader };