esm/TextureSwitchingLoader.js
/**
     * Load image as Texture or CanvasTexture.
     *
     * @param url
     * @param option
     * @return Promise<Texture> Texture or CanvasTexture
     */
Load image as Texture or CanvasTexture.
@param url
@param option
@return Promise Texture or CanvasTexture
Load image as Texture or CanvasTexture . @param url @param option @return Promise Texture or CanvasTexture
load(url, option) {
        if (option == null) {
            option = {};
        }
        if (TextureSwitchingLoader.isSupportImageBitmap) {
            return this.loadImageBitmap(url, option);
        }
        return this.loadTexture(url, option);
    }
load ( url , option ) { if ( option == null ) { option = { } ; } if ( TextureSwitchingLoader . isSupportImageBitmap ) { return this . loadImageBitmap ( url , option ) ; } return this . loadTexture ( url , option ) ; }
Load image as Texture or CanvasTexture.
Load image as Texture or CanvasTexture .