Function CreateTexture2DArrayFromImageUrlsAsync
-
CreateTexture2DArrayFromImageUrlsAsync(
scene: Scene,
urls: readonly [string, string],
options?: ICreateTexture2DArrayFromImageUrlsOptions,
): Promise<RawTexture2DArray>Parameters
- scene: Scene
defines the hosting scene
- urls: readonly [string, string]
defines the url of the image for each layer (at least one)
Optionaloptions: ICreateTexture2DArrayFromImageUrlsOptionsdefines optional creation and upload settings
Returns Promise<RawTexture2DArray>
a promise resolved with the created RawTexture2DArray
- scene: Scene
Creates a 2D array texture and fills each layer from a list of image urls. All images must share the same dimensions.