Command Palette

Search for a command to run...

Hectal
Phase 18: Production-ready 3D
3D Web · Exercise 2 of 4 PreviousNext
Advanced

Repaint after the GPU is lost

A picture is painted once into a render target and shown on a plane. After a lost and restored context the plane turns black.

Add one listener so the picture comes back after a restore.

What Check tests

  1. The picture is orange before the loss
  2. The context is lost and restored
  3. The picture is orange again

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.