Constructors
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: string, options: ImageURLOptions) => 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: string, options: ImageURLOptions) => string);
}
Optional
transform?: ((source: string, options: ImageURLOptions) => 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: NetworkResponse<CubeTexture, NetWorkMeta[]>) => void) = noop
- (response): void
Returns void
- onError: ((error: Error) => void) = noop
- (error): void
Returns void
- onProgress: ((percent: number) => 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: string, options: ImageURLOptions) => 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: string, options: ImageURLOptions) => string);
}
Optional
transform?: ((source: string, options: ImageURLOptions) => 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: NetworkResponse<Texture>) => void) = noop
- (response): void
Returns void
- onError: ((error: Error) => void) = noop
- (error): void
Returns void
- onProgress: ((percent: number) => 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: string, options: ImageURLOptions) => 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: string, options: ImageURLOptions) => string);
}
Optional
transform?: ((source: string, options: ImageURLOptions) => 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: NetworkResponse<TileCubeTextureTarget, NetWorkMeta[]>) => void) = noop
- (response): void
Returns void
- onError: ((error: Error) => void) = noop
- (error): void
Returns void
- onProgress: ((percent: number) => void) = noop
- (percent): void
Returns void
- renderer: WebGLRenderer