Capítulo 228 de 859

Chapter 228: HTMLTexture

Core Idea

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.

Key Concepts

  • isHTMLTexture : boolean (readonly): This flag can be used for type testing.

Reference Tables

Constructor

Signature
new HTMLTexture( element : HTMLElement, mapping : number, wrapS : number, wrapT : number, magFilter : number, minFilter : number, format : number, type : number, anisotropy : number )

Properties

PropertyDescription
.isHTMLTexture : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. HTMLTexture extends: EventDispatcher → Texture
  2. Most relevant properties: isHTMLTexture.

Connects To