RenderTargetOptions
Defined in: renderer/src/RenderTarget.ts:10
Options for RendererPlugin.createRenderTarget.
Properties
Section titled “Properties”antialias?
Section titled “antialias?”
optionalantialias?:boolean
Defined in: renderer/src/RenderTarget.ts:28
Antialias the buffer’s own edges. Default false.
clearColor?
Section titled “clearColor?”
optionalclearColor?:ColorSource
Defined in: renderer/src/RenderTarget.ts:30
Colour the buffer is cleared to before each render. Default: transparent.
height
Section titled “height”height:
number
Defined in: renderer/src/RenderTarget.ts:14
Buffer height, in the source container’s own coordinates.
label?
Section titled “label?”
optionallabel?:string
Defined in: renderer/src/RenderTarget.ts:32
Label on the underlying texture, shown in the Pixi devtools.
resolutionScale?
Section titled “resolutionScale?”
optionalresolutionScale?:number
Defined in: renderer/src/RenderTarget.ts:26
Texel density as a fraction of the renderer’s own resolution. 1
(the default) gives the buffer the same sharpness as the canvas; 0.5
allocates a quarter of the texels and stretches them back over the same
area.
The texture still measures width × height whatever the value, so
lowering it costs sharpness and never layout. Worth doing for content
that is already soft — gradients, blurred glows — and not for text or
pixel art.
width:
number
Defined in: renderer/src/RenderTarget.ts:12
Buffer width, in the source container’s own coordinates.