WebGL & three.js Cheat Sheet
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
A single-page index of quick links to every page in this sub-section, grouped like the sub-section itself, for jumping straight to the topic you need instead of paging through the navigation.
The downloadable PDF is a separate, single A4 page meant for printing. It states the version baseline this sub-section targets (WebGL 2 with GLSL ES 3.00, three.js r187 and the WebGPU drafts, all checked on 1 November 2026) and covers:
-
the versions and the browser support baseline, with ANGLE;
-
context creation with its attributes, and the minimal draw recipe from shader to program, buffer, vertex array object, uniforms and draw call;
-
a mini pipeline diagram, the GLSL ES 1.00 against 3.00 keyword map with precision, and the state order for viewport, depth, blending and culling;
-
textures (formats, immutable storage, mipmaps, filtering, wrapping and cross-origin images) and a framebuffer snippet with multiple render targets and multisampling;
-
the twelve most useful extensions, a context-loss handler skeleton and a ten-item performance checklist;
-
the three.js skeleton with an import map, the core classes, the colour-management defaults and glTF loading with Draco and KTX2;
-
the old to new three.js API table, the
WebGPURendererand TSL quick start, and the WebGPU against WebGL concept map with the 2026 support grid.
Orientation — WebGL, WebGL Versions and Browser Support, and What Has Changed Since the Older WebGL and three.js Guides.
First triangle and pipeline — Your First Triangle in WebGL 2, The WebGL Rendering Pipeline, GLSL ES 1.00 and 3.00 in WebGL, and Buffers, Attributes, Uniforms and VAOs.
Transformations and appearance — Transforms and Cameras, Textures and Samplers in WebGL, and Lighting in WebGL Shaders.
WebGL 2 in depth — Framebuffers and Render-to-Texture in WebGL 2, WebGL 2 Advanced Features, and WebGL Extensions.
Robustness and engineering — Context Loss and Robustness, OffscreenCanvas and Workers, WebGL Performance and Debugging, and WebGL Security, CORS and Privacy.
three.js basics — three.js: Getting Started, three.js Scene Graph and Transforms, three.js Geometry, three.js Materials and PBR, three.js Textures and Colour Management, and three.js Lights and Shadows.
three.js content and interaction — Loading Models and glTF in three.js, three.js Animation System, three.js Interaction, Picking and Controls, three.js Custom Shaders (GLSL), and three.js Post-processing.
three.js and WebGPU — three.js WebGPURenderer and TSL, three.js Performance and Disposal, and WebGPU: Overview and Comparison with WebGL.
References
-
WebGL 2.0 specification: https://registry.khronos.org/webgl/specs/latest/2.0/
-
WebGL extension registry: https://registry.khronos.org/webgl/extensions/
-
MDN WebGL API: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API
-
three.js documentation: https://threejs.org/docs/ and manual: https://threejs.org/manual/
-
three.js Migration Guide: https://github.com/mrdoob/three.js/wiki/Migration-Guide
-
WebGPU: https://www.w3.org/TR/webgpu/ and WGSL: https://www.w3.org/TR/WGSL/