API

Function UploadIrradianceLevelsAsync

  • Uploads the levels of image data to the GPU.

    Parameters

    • mainTexture: InternalTexture

      defines the internal texture to upload to

    • imageData: ArrayBufferView<ArrayBufferLike>[]

      defines the array buffer views of image data [mipmap][face]

    • size: number

      defines the size of the texture faces

    • imageType: string = DefaultEnvironmentTextureImageType

      the mime type of the image data

    • dominantDirection: Nullable<Vector3> = null

      the dominant direction of light in the environment texture, if available

    Returns Promise<void>

    a promise