MasatoMakino/threejs-texture-switching-loader

View on GitHub
src/TextureSwitchingLoaderOption.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { CanvasTextureOption } from "./index.js";

/**
 * Options for Three.ImageBitmapLoader.
 */
export interface TextureSwitchingLoaderOption {
  /**
   * Options for THREE.CanvasTexture Constructor.
   */
  canvasTextureOption?: CanvasTextureOption;
  /**
   * Options for THREE.ImageBitmapLoader.setOptions().
   * @see [Three.js Official Document]{@link https://threejs.org/docs/#api/en/loaders/ImageBitmapLoader.setOptions}
   * @see [createImageBitmap() parameters 'options'](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap#Parameters)
   */
  imageBitmapOption?: ImageBitmapOptions;
}