Shader Learn

08 What Three.js writes for you

What Three.js prepares for you

Click a name in the code to see its Three.js counterpart.

-3.143.14

Runs once per vertexDrag numbers, or edit the code

JS sidegl.uniformMatrix4fv(uModel, …) // rotation 0.60 / 0.10

Three.js prepares geometry data, matrices and a compile prefix for you: aPosition ↔ position, uProjection ↔ projectionMatrix.

Try it

  • Click uModel in the code and read its Three.js name