Capítulo 225 de 859

Chapter 225: ExternalTexture

Core Idea

Represents a texture created externally with the same renderer context.

This may be a texture from a protected media stream, device camera feed, or other data feeds like a depth sensor.

Key Concepts

  • isExternalTexture : boolean (readonly): This flag can be used for type testing.
  • sourceTexture : WebGLTexture | GPUTexture: The external source texture.

Reference Tables

Constructor

Signature
`new ExternalTexture( sourceTexture : WebGLTexture

Properties

PropertyDescription
.isExternalTexture : boolean (readonly)This flag can be used for type testing.
`.sourceTexture : WebGLTextureGPUTexture`

Key Takeaways

  1. ExternalTexture extends: EventDispatcher → Texture
  2. Most relevant properties: isExternalTexture, sourceTexture.

Connects To