magic-pixels
    Preparing search index...

    Class RenderTarget

    A colour buffer, plus an optional depth buffer, that the renderer can draw into instead of the canvas (renderer.render(scene, camera, target)). Plain data like every other scene object: no GPU handles here, the renderer owns and caches the framebuffer, keyed by this object.

    Index
    colorAttachment: Texture

    The colour output, sampled like any other Texture once something has rendered into it.

    depthAttachment: Texture | null

    Only set when depth is 'texture'. A renderbuffer has no Texture representation: it can be written to but never sampled.

    float: boolean
    height: number
    width: number