Readonly
dimensionsThe dimensions of the texture
Readonly
errorReadonly
lastReadonly
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
onSet the core context state of the texture
State of the texture
Optional
errorOrDimensions: Error | DimensionsError or dimensions of the texture
Set the source state of the texture
State of the texture
Optional
errorOrDimensions: Error | DimensionsError or dimensions of the texture
Static
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
.