Readonly
dimensionsThe dimensions of the texture
Readonly
errorReadonly
renderableReadonly
renderableProtected
txStatic
z$__type__Get the texture data for this texture.
The texture data for this texture.
Get the texture source for this texture.
Optional
onOptional
errorOrDimensions: Error | DimensionsStatic
makeStatic
resolve
Texture consisting of an image loaded from a URL
Remarks
The ImageTexture's ImageTextureProps.src prop defines the image URL to be downloaded.
By default, the texture's alpha values will be premultiplied into its color values which is generally the desired setting before they are sent to the texture's associated Shader. However, in special cases you may want the Shader to receive straight (non-premultiplied) values. In that case you can disable the default behavior by setting the ImageTextureProps.premultiplyAlpha prop to
false
.