Skip to content

RenderTargetOptions

Defined in: renderer/src/RenderTarget.ts:10

Options for RendererPlugin.createRenderTarget.

optional antialias?: boolean

Defined in: renderer/src/RenderTarget.ts:28

Antialias the buffer’s own edges. Default false.


optional clearColor?: ColorSource

Defined in: renderer/src/RenderTarget.ts:30

Colour the buffer is cleared to before each render. Default: transparent.


height: number

Defined in: renderer/src/RenderTarget.ts:14

Buffer height, in the source container’s own coordinates.


optional label?: string

Defined in: renderer/src/RenderTarget.ts:32

Label on the underlying texture, shown in the Pixi devtools.


optional resolutionScale?: 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.