How Programs Are Built

Under the Hood: How the Renderer Builds Programs

Three.js 30,815 writes and compiles the shaders WebGL wrote by hand, one program per combination of material features. Knowing when explains first-frame stalls and changes that seem to be ignored.

Subsections