Command Palette

Search for a command to run...

Hectal
Phase 13: WebGPU, TSL and Node Materials
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

  1. It names the backend this page really uses
  2. A WebGLRenderer is "WebGL 2"
  3. 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.