Enhanced Data
Experiment #1: Helix
Experiment #2: Table
Experiment #4: Grid
See ⮂ Also
⭐ Shaders 101 Brad Woods The pipeline that transforms three.js code to pixels looks like this:
- three.js JavaScript code is executed on the CPU
- Shader code is executed on the GPU
- Pixels are rendered on the screen
A shader has two parts, a vertex and fragment shader. They work like this:
- Each vertex runs through the vertex shader to get its viewport space position.
- Primitives are converted into fragments. Fragments are data corresponding to a potential pixel.
- Each fragment runs through the fragment shader to get its color.