Command Palette

Search for a command to run...

Hectal
Phase 6: Textures and Environments
3D Web · Exercise 3 of 4 PreviousNext
Intermediate

Free the textures

The card gets a new texture 20 times, as if the user picked 20 colours. The status bar shows 21 textures in memory and rising. Free each old texture when it is replaced.

Afterwards renderer.info.memory.textures must be 2 or fewer.

What Check tests

  1. The card still has a map
  2. At most 2 textures are in memory
  3. The last console line agrees

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.