THREE.JS / FOUNDATIONS 87

Make depth visible.

A scene renders into a target with a real depth attachment. The fullscreen pass samples that depth texture directly, while the target controls expose the MSAA and resolve contract.

Initializing —

Creating a depth texture and post-processing quad.

Backend
—
Samples
—
Format
—
Draw calls
—
DepthTexture attachmentpost-pass sample

The preview is fed by texture(depthTexture), not a color approximation.

Shape
—
Type
—
Resolve
—
Stencil buffer
—
Stencil resolve
—
Depth store option
—
Policy surfacedocs versus installed source

Current docs describe color resolve and multisample store policies. This installed 0.185.1 audit reports whether each field exists instead of pretending unsupported options are active.

—

Depth target controls
Render target lifecycle
scene→color + depth→MSAA resolve→fullscreen sample

The color target and depth texture are both attached to the offscreen pass.

Choose depth/color · switch format/type · compare 0 and 4 samples · orbit the scene

Previous: readback + layered depth →
LAB 87 / DEPTH + MSAA