// readme

PWGL – 2D WebGL2 JavaScript Framework

PWGL is a JavaScript framework for creating 2D WebGL2 games and applications.


Demos

Browse all demos


Features

  • High-performance batch rendering (10.000+ elements at 60fps)
  • Dynamic 2D lights and shadows
  • Element picker (clickable renderables)
  • Image filters (Blur, Pixelate, Distortion, etc.)
  • Video textures
  • Framebuffer and filter renderers
  • Minified and lightweight builds for faster load
  • Fully WebGL2 compatible, falls back gracefully if WebGL2 is not supported

Builds

PWGL provides multiple builds for different use cases.

Vite production builds:

FileFormat
dist/pwgl.es.jsES Module with named exports, minified
dist/pwgl.umd.jsUMD global build, minified
dist/pwgl.extensions.es.jsES Module with named extension exports…