Skip to content

shaderLighting

shaderLighting(options?): LightingRendererFactory

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

Return a per-scene factory for the shader-based renderer.

A browser that gives Pixi a WebGL 1 context has none of the shader language this renderer is written in, which is the one device limit it can read before drawing. Such a device gets options.fallback, or an error naming the option when none is given. A shader that fails to build on a context that does have the language is reported to the browser console by Pixi and by the driver, not to this factory, so nothing here can answer it.

ShaderLightingRendererOptions = {}

LightingRendererFactory

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.