FramebufferTexture

new FramebufferTexture(width: number, height: number)
THREE: THREE.FramebufferTexture

CPU render-to-texture. Captures a rectangular region of the current framebuffer for use in a subsequent draw pass.

Differs from THREE.js

CPU-side capture via ImageData, not a GPU framebuffer object. Requires an explicit capture() call.

Properties

NameTypeDescription
width

number

Capture width in pixels.

height

number

Capture height in pixels.

data

ImageData|undefined

Captured pixel data (read-only).

Methods

MethodDescription
capture(source: ImageData, x?: number, y?: number): void

Copies a width x height region from the framebuffer ImageData starting at (x, y).

dispose(): void

Clears the captured data.