Methods
loadCubeTexture
- loadCubeTexture(sources, options, onLoad?, onError?, onProgress?, renderer): Promise<NetworkResponse<CubeTexture, NetWorkMeta[]>>
Parameters
- sources: WorkCubeImage
- options: {
fetcher: Fetcher;
format?: PixelFormat;
generateMipmaps?: boolean;
imageURL?: {
options?: ImageURLOptions;
transform?: ((source, options) => string);
};
magFilter?: TextureFilter;
minFilter?: TextureFilter;
timeout?: number;
viaAjax?: boolean;
wrapS?: Wrapping;
wrapT?: Wrapping;
}Optional format?: PixelFormat
Optional generateMipmaps?: boolean
Optional imageURL?: {
options?: ImageURLOptions;
transform?: ((source, options) => string);
}
Optional transform?: ((source, options) => string)
- (source, options): string
Returns string
Optional magFilter?: TextureFilter
Optional minFilter?: TextureFilter
Optional timeout?: number
Optional viaAjax?: boolean
Optional wrapS?: Wrapping
Optional wrapT?: Wrapping
- onLoad: ((response) => void) = noop
- (response): void
Returns void
- onError: ((error) => void) = noop
- (error): void
Returns void
- onProgress: ((percent) => void) = noop
- (percent): void
Returns void
- renderer: WebGLRenderer
loadTexture
- loadTexture(source, options, onLoad?, onError?, onProgress?, renderer?): Promise<NetworkResponse<Texture>>
Parameters
- source: string
- options: {
encoding?: TextureEncoding;
fetcher: Fetcher;
flipY?: boolean;
format?: PixelFormat;
generateMipmaps?: boolean;
imageURL?: {
options?: ImageURLOptions;
transform?: ((source, options) => string);
};
magFilter?: TextureFilter;
maxSize?: Vector2;
minFilter?: TextureFilter;
timeout?: number;
viaAjax?: boolean;
wrapS?: Wrapping;
wrapT?: Wrapping;
}Optional encoding?: TextureEncoding
Optional flipY?: boolean
Optional format?: PixelFormat
Optional generateMipmaps?: boolean
Optional imageURL?: {
options?: ImageURLOptions;
transform?: ((source, options) => string);
}
Optional transform?: ((source, options) => string)
- (source, options): string
Returns string
Optional magFilter?: TextureFilter
Optional maxSize?: Vector2
Optional minFilter?: TextureFilter
Optional timeout?: number
Optional viaAjax?: boolean
Optional wrapS?: Wrapping
Optional wrapT?: Wrapping
- onLoad: ((response) => void) = noop
- (response): void
Returns void
- onError: ((error) => void) = noop
- (error): void
Returns void
- onProgress: ((percent) => void) = noop
- (percent): void
Returns void
Optional renderer: WebGLRenderer
loadTiledCubeTexture
- loadTiledCubeTexture(sources, tileSources, options, onLoad?, onError?, onProgress?, renderer): Promise<NetworkResponse<TileCubeTextureTarget, NetWorkMeta[]>>
Parameters
- sources: WorkCubeImage
- tileSources: WorkTile[]
- options: {
fetcher: Fetcher;
format?: PixelFormat;
generateMipmaps?: boolean;
imageURL?: {
options?: ImageURLOptions;
transform?: ((source, options) => string);
};
magFilter?: TextureFilter;
minFilter?: TextureFilter;
tileMaxLevel?: number;
timeout?: number;
viaAjax?: boolean;
wrapS?: Wrapping;
wrapT?: Wrapping;
}Optional format?: PixelFormat
Optional generateMipmaps?: boolean
Optional imageURL?: {
options?: ImageURLOptions;
transform?: ((source, options) => string);
}
Optional transform?: ((source, options) => string)
- (source, options): string
Returns string
Optional magFilter?: TextureFilter
Optional minFilter?: TextureFilter
Optional tileMaxLevel?: number
Optional timeout?: number
Optional viaAjax?: boolean
Optional wrapS?: Wrapping
Optional wrapT?: Wrapping
- onLoad: ((response) => void) = noop
- (response): void
Returns void
- onError: ((error) => void) = noop
- (error): void
Returns void
- onProgress: ((percent) => void) = noop
- (percent): void
Returns void
- renderer: WebGLRenderer