A handle to an offscreen render target.
ctx.createRenderTarget(...) returns EffectRenderTarget as the handle of the raw WebGL framebuffer. You can use it as a draw target (ctx.draw({ target: rt })) and as a sampler2D uniform to read it back in a later pass.
ctx.createRenderTarget(...)
EffectRenderTarget
ctx.draw({ target: rt })
sampler2D
width / height are physical pixels.
width
height
Readonly
A handle to an offscreen render target.
ctx.createRenderTarget(...)returnsEffectRenderTargetasthe handle of the raw WebGL framebuffer.
You can use it as a draw target (
ctx.draw({ target: rt })) andas a
sampler2Duniform to read it back in a later pass.width/heightare physical pixels.