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;
}Optionalformat?: PixelFormat
OptionalgenerateMipmaps?: boolean
OptionalimageURL?: {
options?: ImageURLOptions;
transform?: ((source: string, options: ImageURLOptions) => string);
}
Optionaltransform?: ((source: string, options: ImageURLOptions) => string)
- (source, options): string
Returns string
OptionalmagFilter?: TextureFilter
OptionalminFilter?: TextureFilter
Optionaltimeout?: number
OptionalviaAjax?: boolean
OptionalwrapS?: Wrapping
OptionalwrapT?: 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;
}Optionalencoding?: TextureEncoding
OptionalflipY?: boolean
Optionalformat?: PixelFormat
OptionalgenerateMipmaps?: boolean
OptionalimageURL?: {
options?: ImageURLOptions;
transform?: ((source: string, options: ImageURLOptions) => string);
}
Optionaltransform?: ((source: string, options: ImageURLOptions) => string)
- (source, options): string
Returns string
OptionalmagFilter?: TextureFilter
OptionalmaxSize?: Vector2
OptionalminFilter?: TextureFilter
Optionaltimeout?: number
OptionalviaAjax?: boolean
OptionalwrapS?: Wrapping
OptionalwrapT?: 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
Optionalrenderer: 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;
}Optionalformat?: PixelFormat
OptionalgenerateMipmaps?: boolean
OptionalimageURL?: {
options?: ImageURLOptions;
transform?: ((source: string, options: ImageURLOptions) => string);
}
Optionaltransform?: ((source: string, options: ImageURLOptions) => string)
- (source, options): string
Returns string
OptionalmagFilter?: TextureFilter
OptionalminFilter?: TextureFilter
OptionaltileMaxLevel?: number
Optionaltimeout?: number
OptionalviaAjax?: boolean
OptionalwrapS?: Wrapping
OptionalwrapT?: 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