WebGL Cookbook
summary
WebGL renders only triangles and excels when you need thousands of animated elements or GPU-accelerated 2D/3D (games, a Figma-like editor, heavy landing backgrounds). Use a tiny wrapper like regle if you want minimal bundle and will write shaders; use Pixel JS for high-level 2D with filters and React integration; use 3GS for 3D scenes, cameras and model loaders. Raw WebGL stays low-level, requires shader work and careful state handling; prefer the right library for performance, memory limits (notably Safari) and faster delivery.
AI-written summary · about
chapters (20)
- 0:00Introduction and welcome
- 1:31About the speaker and WebGL
- 4:01WebGL history and basics
- 6:27When to use WebGL
- 7:30Demos and projects using WebGL
- 9:57WebGL for memory efficiency
- 11:41Learning WebGL resources
- 12:22Regl library overview
- 14:33PixiJS library overview
- 17:23Three.js library overview
- 20:11When not to use WebGL
- 20:55Why avoid pure WebGL
- 22:21Creating high-quality graphics
- 23:45AI and WebGL limitations
- 25:52Q&A session begins
- 26:13WebGL as a game engine
- 28:20Hardest WebGL projects
- 29:442D rendering with WebGL
- 31:51Canvas vs WebGL trade-offs
- 33:59Closing remarks and voting
