Class: TextureArray

TextureArray() → {TextureArray}

new TextureArray() → {TextureArray}

Texture array object for holding array of images into texures unit that can be used by other texture primitives.
Author:
  • Alan Wu
Source:
Returns:
Type
TextureArray

Methods

getMaterial(options)

Get and create the material containing shaders and the textures. The texture must be read and ready before calling this function.
Parameters:
Name Type Description
options Object Customise the material with the options object.
Properties
Name Type Description
fs String string of the fragment shader used for visualisation.
vs String string of the vertex shader used for visualisation.
uniforms Object Containing the data to be passed into the shaders.
glslVersion String Version of glsl used for compile this shader.
Source:

(async) loadFromImages(srcArrays)

Read images from an array containg src locations.
Parameters:
Name Type Description
srcArrays Array List of source location of the images.
Source: