Command Palette

Search for a command to run...

Hectal
Phase 15: Post-Processing and Effects
3D Web · Exercise 2 of 4 PreviousNext
Intermediate

A screen in the scene

A plane named screen should show what a second camera sees: the orange cube in photoScene. Right now it is a dark grey plane.

Make a WebGLRenderTarget of 128 × 128, draw photoScene into it every frame, and use its texture as the screen's map. The scene must stay within 3 draw calls.

What Check tests

  1. A mesh named screen exists
  2. Its map is a render-target texture
  3. The target is 128 x 128 pixels
  4. The middle of the canvas shows the orange cube
  5. At most 3 draw calls

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.