Skip to content

ShaderLightingRendererOptions

Defined in: lighting/src/ShaderLightingRenderer.ts:30

Options for the shader-based lighting renderer.

optional fallback?: LightingRendererFactory

Defined in: lighting/src/ShaderLightingRenderer.ts:46

Renderer to build instead on a device whose browser gives Pixi a WebGL 1 context, where this renderer’s shader language does not exist. With none given, such a device throws when a scene using this renderer is entered.


optional layer?: string

Defined in: lighting/src/ShaderLightingRenderer.ts:32

Screen-space layer name. Default "lighting".


optional order?: number

Defined in: lighting/src/ShaderLightingRenderer.ts:34

Layer order when the renderer creates it. Default 900.


optional resolutionScale?: number

Defined in: lighting/src/ShaderLightingRenderer.ts:40

Render-target texel density relative to the canvas. Default 1, where the drawn light matches levelAt() pixel for pixel. Lower it to trade that agreement at shadow borders for fill cost.

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/lighting.md.