Skip to content

Commit

Permalink
Merge pull request #21145 from Mugen87/dev2
Browse files Browse the repository at this point in the history
Added RGBMLoader.
  • Loading branch information
mrdoob committed Jan 26, 2021
2 parents 3d153ab + 5eba37e commit 16eb3ec
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 16eb3ec

Please sign in to comment.