Skip to content

CanvasTexture

new CanvasTexture(canvas: HTMLCanvasElement)

THREE equivalent: THREE.CanvasTexture

Texture sourced from a canvas element. Automatically triggers the needsUpdate path on construction, so the canvas contents are immediately available.