@types/three
Version:
TypeScript definitions for three
22 lines (15 loc) • 573 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;
}
export { UltraHDRLoader };