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
@@ -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;

}

0 comments on commit 5eba37e

Please sign in to comment.