Function UploadIrradianceLevelsAsync
-
UploadIrradianceLevelsAsync(
mainTexture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[],
size: number,
imageType?: string,
dominantDirection?: Nullable<Vector3>,
): Promise<void>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
- mainTexture: InternalTexture
Uploads the levels of image data to the GPU.