Command Palette

Search for a command to run...

Hectal
Phase 14: Under the Hood: Raw WebGL 2 and WebGPU
3D Web · Exercise 2 of 4 PreviousNext
Advanced

Bind the second triangle

Two triangles share one program: an orange one on the left, a blue one on the right. Only one blue triangle appears, on the left.

Add the one missing call so the blue triangle reads its own buffer.

What Check tests

  1. The left triangle is orange
  2. The right triangle is blue
  3. No WebGL errors

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.