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.


optional dependsOn?: readonly RenderTargetHandle[]

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

Targets sampled by this pass. Drawing waits until these targets are clean.


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.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.