Inheritance: EventDispatcher → Texture →
Creates a texture from an HTML element.
This is almost the same as the base texture class, except that it sets Texture#needsUpdate to true immediately and listens for the parent canvas's paint events to trigger updates.
Constructs a new texture.
element
The HTML element.
mapping
The texture mapping.
Default is Texture.DEFAULT_MAPPING.
wrapS
The wrapS value.
Default is ClampToEdgeWrapping.
wrapT
The wrapT value.
Default is ClampToEdgeWrapping.
magFilter
The mag filter value.
Default is LinearFilter.
minFilter
The min filter value.
Default is LinearMipmapLinearFilter.
format
The texture format.
Default is RGBAFormat.
type
The texture type.
Default is UnsignedByteType.
anisotropy
The anisotropy value.
Default is Texture.DEFAULT_ANISOTROPY.
This flag can be used for type testing.
Default is true.