Readonly
dimensionsThe dimensions of the texture
Readonly
errorReadonly
lastReadonly
renderableReadonly
renderableReadonly
stateProtected
txStatic
z$__type__Get the CoreContextTexture for this Texture
Get the texture data for this texture.
The texture data for this texture.
Optional
onSet the state of the texture
Rest
...args: ParametersSkipTarget<TextureStateEventMap[State]>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
.