THREE.JS / SOURCE CONTRACT 351

One pass, two truths.

A native WebGL2 WebGLRenderTarget with two color attachments receives color and normal data from one GLSL3 draw. The preview and indexed readback keep the attachments observable.

target
—
attachments
—
pixel 0 / 1
—
sample avg / p95
—
draw calls
—
exposure
—
Initializing MRTWebGL2

Allocating two color attachments…

This route covers native WebGL2 multiple color attachments and indexed readback. It does not claim the WebGPU MRT graph, exact official scene/assets/pixels, MSAA resolve behavior, device attachment limits, or whole-example fidelity.

Color attachment 0 is the shaded surface; color attachment 1 is the encoded view-space normal.

Open official WebGL MRT example ↗
LAB 351 / MULTIPLE RENDER TARGETS