Constructors

Methods

  • 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;
      }
      • fetcher: Fetcher
      • Optionalformat?: PixelFormat
      • OptionalgenerateMipmaps?: boolean
      • OptionalimageURL?: {
            options?: ImageURLOptions;
            transform?: ((source: string, options: ImageURLOptions) => string);
        }
      • OptionalmagFilter?: TextureFilter
      • OptionalminFilter?: TextureFilter
      • Optionaltimeout?: number
      • OptionalviaAjax?: boolean
      • OptionalwrapS?: Wrapping
      • OptionalwrapT?: Wrapping
    • onLoad: ((response: NetworkResponse<CubeTexture, NetWorkMeta[]>) => void) = noop
    • onError: ((error: Error) => void) = noop
        • (error): void
        • Parameters

          • error: Error

          Returns void

    • onProgress: ((percent: number) => void) = noop
        • (percent): void
        • Parameters

          • percent: number

          Returns void

    • renderer: WebGLRenderer

    Returns Promise<NetworkResponse<CubeTexture, NetWorkMeta[]>>

  • 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
      • fetcher: Fetcher
      • OptionalflipY?: boolean
      • Optionalformat?: PixelFormat
      • OptionalgenerateMipmaps?: boolean
      • OptionalimageURL?: {
            options?: ImageURLOptions;
            transform?: ((source: string, options: ImageURLOptions) => string);
        }
      • OptionalmagFilter?: TextureFilter
      • OptionalmaxSize?: Vector2
      • OptionalminFilter?: TextureFilter
      • Optionaltimeout?: number
      • OptionalviaAjax?: boolean
      • OptionalwrapS?: Wrapping
      • OptionalwrapT?: Wrapping
    • onLoad: ((response: NetworkResponse<Texture>) => void) = noop
    • onError: ((error: Error) => void) = noop
        • (error): void
        • Parameters

          • error: Error

          Returns void

    • onProgress: ((percent: number) => void) = noop
        • (percent): void
        • Parameters

          • percent: number

          Returns void

    • Optionalrenderer: WebGLRenderer

    Returns Promise<NetworkResponse<Texture>>

  • 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;
      }
      • fetcher: Fetcher
      • Optionalformat?: PixelFormat
      • OptionalgenerateMipmaps?: boolean
      • OptionalimageURL?: {
            options?: ImageURLOptions;
            transform?: ((source: string, options: ImageURLOptions) => string);
        }
      • OptionalmagFilter?: TextureFilter
      • OptionalminFilter?: TextureFilter
      • OptionaltileMaxLevel?: number
      • Optionaltimeout?: number
      • OptionalviaAjax?: boolean
      • OptionalwrapS?: Wrapping
      • OptionalwrapT?: Wrapping
    • onLoad: ((response: NetworkResponse<TileCubeTextureTarget, NetWorkMeta[]>) => void) = noop
    • onError: ((error: Error) => void) = noop
        • (error): void
        • Parameters

          • error: Error

          Returns void

    • onProgress: ((percent: number) => void) = noop
        • (percent): void
        • Parameters

          • percent: number

          Returns void

    • renderer: WebGLRenderer

    Returns Promise<NetworkResponse<TileCubeTextureTarget, NetWorkMeta[]>>