Command Palette

Search for a command to run...

Hectal
Phase 17: Performance
3D Web · Exercise 2 of 4 PreviousNext
Advanced

Fix the vanishing wall

A shader stretches a 1 m wall to 20 m. With the wall moved to x = 7 it disappears, although most of it is on screen.

Fix it by giving the geometry a bounding sphere that tells the truth (radius at least 10). Do not turn culling off.

What Check tests

  1. The wall is drawn (1 draw call)
  2. Culling is still on
  3. The bounding sphere has a radius of at least 10

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.