API

Type Alias PrepareTextureFunction

PrepareTextureFunction: (
    texture: InternalTexture,
    extension: string,
    scene: Nullable<ISceneLike>,
    img: HTMLImageElement | ImageBitmap | { height: number; width: number },
    invertY: boolean,
    noMipmap: boolean,
    isCompressed: boolean,
    processFunction: PrepareTextureProcessFunction,
    samplingMode: number,
) => void

Type Declaration

    • (
          texture: InternalTexture,
          extension: string,
          scene: Nullable<ISceneLike>,
          img: HTMLImageElement | ImageBitmap | { height: number; width: number },
          invertY: boolean,
          noMipmap: boolean,
          isCompressed: boolean,
          processFunction: PrepareTextureProcessFunction,
          samplingMode: number,
      ): void
    • Parameters

      • texture: InternalTexture
      • extension: string
      • scene: Nullable<ISceneLike>
      • img: HTMLImageElement | ImageBitmap | { height: number; width: number }
      • invertY: boolean
      • noMipmap: boolean
      • isCompressed: boolean
      • processFunction: PrepareTextureProcessFunction
      • samplingMode: number

      Returns void