Skip to content
pixi-silk
GitHub repository
Entry point

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#

FunctionDescription
enableWebGL1Lets 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.
isWebGL1Whether renderer is Pixi’s WebGL renderer on a WebGL1 context.
isWebGL1EnabledWhether enableWebGL1 has run on a WebGL1 renderer, so new SilkGraphics carry the WebGL1 program.