WebGL Lesson 8 – the depth buffer, transparency and blending
WebGL rendering process:
- Runs the vertex shader on all of the vertices to work out where everything is.
- Linearly interpolates between the vertices, which tells it which fragments (which for the moment you can treat as being the same as pixels) need to be painted.
- For each fragment, run the fragment shader on it to work out its colour.
- Write it to the frame buffer(color buffer).
For detail, check the source code at .
Canvas SPEC
WebGL SPEC