TARGET PASS / offscreen
SCREEN PASS / canvas
THREE.JS / FOUNDATIONS 302
Pixels have an owner.
A render target is an explicit destination. Snapshot the renderer state, render offscreen, restore the canvas contract, then present the texture.
Initializing
—
Preparing target and screen passes…
- backend
- —
- target
- —
- target camera
- —
- pass handoff
- —
- state restore
- —
- autoClear
- —
- draw calls
- —
- sample
- NOT RUN
Target state is waiting for initialization. CANVAS TARGET: —
The offscreen target should hand back a null render target, disabled scissor, and the screen viewport after every frame.
Sources: Renderer · RenderTarget · WebGLRenderer · Render targets manual · WebGL RTT example · WebGPU RTT example
Renderer + target error
LAB 302 / RENDERER + TARGET STATE