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
- A mesh named screen exists
- Its map is a render-target texture
- The target is 128 x 128 pixels
- The middle of the canvas shows the orange cube
- 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.