Skip to content

core/texture

Type Aliases

Type AliasDescription
BaseTextureParamsBase parameters for configuring a WebGL texture.
DataTextureParamsParameters for creating a texture from raw data (TypedArray).
ImageTextureParamsParameters for creating a texture from an external source (Image, Video, etc.).
TextureParamsUnion type of all possible texture configuration parameters.
LoadVideoParamsParameters for loading a video texture.

Functions

FunctionDescription
loadTextureLoads an image from a URL and returns a Promise resolving to ImageTextureParams.
loadVideoTextureLoads a video from a URL and returns ImageTextureParams.
createFloatDataTextureCreates texture parameters for a float data texture. Useful for passing arbitrary numerical data to shaders.

Released under the MIT License.