pixi-silk/webgl1
enableWebGL1: opt-in GLSL ES 1.00 shaders for Pixi’s WebGL1 fallback. Pass it to createSilkApp as webgl1.
import { enableWebGL1, isWebGL1, isWebGL1Enabled } from 'pixi-silk/webgl1';
Functions#
| Function | Description |
|---|---|
| enableWebGL1 | Lets SilkGraphics, SilkText and Glass render on a WebGL1 context. Pixi falls back to WebGL1 when the browser has no WebGL2. This installs GLSL ES 1.00 versions of the shaders, which live in this module so that apps that leave it out do not ship them. |
| isWebGL1 | Whether renderer is Pixi’s WebGL renderer on a WebGL1 context. |
| isWebGL1Enabled | Whether enableWebGL1 has run on a WebGL1 renderer, so new SilkGraphics carry the WebGL1 program. |