3D Web · Exercise 1 of 3Next
Advanced
Which backend am I on?
Write backendName(renderer) as in this phase's build: "WebGL 2" for a WebGLRenderer, otherwise "WebGPU" or "WebGL 2 (fallback)" depending on the backend WebGPURenderer chose.
The checks run your page and also call the function with stand-in objects.
What Check tests
- It names the backend this page really uses
- A WebGLRenderer is "WebGL 2"
- A WebGPURenderer on WebGPU is "WebGPU"
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.