Skip to content

Commit

Permalink
Added RGBMLoader.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jan 26, 2021
1 parent a276648 commit 5eba37e
Show file tree
Hide file tree
Showing 6 changed files with 1,063 additions and 17 deletions.
34 changes: 34 additions & 0 deletions examples/jsm/loaders/RGBMLoader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import {
CubeTexture,
LoadingManager,
DataTextureLoader,
PixelFormat,
TextureDataType,
TextureEncoding
} from '../../../src/Three';

export interface RGBM {
width: number;
height: number;
data: Uint8Array;
header: string;
format: PixelFormat;
type: TextureDataType;
flipY: boolean;
encoding: TextureEncoding;
}

export class RGBMLoader extends DataTextureLoader {

constructor( manager?: LoadingManager );

loadCubemap(
urls: Array<string>,
onLoad?: ( texture: CubeTexture ) => void,
onProgress?: ( event: ProgressEvent ) => void,
onError?: ( event: ErrorEvent ) => void
): CubeTexture;

parse( buffer: ArrayBuffer ): RGBM;

}
Loading

0 comments on commit 5eba37e

Please sign in to comment.