THREE.JS / FOUNDATIONS 229

Choose what glows.

A named MRT attachment decides which objects feed BloomNode, so bright color and bloom eligibility can be inspected independently.

Initializing selective bloom—

Preparing the selective material mask, MRT scene pass, and bloom graph…

backend
—
architecture
—
view
—
bloom objects
—
mask mode
—
frame ms
—
Selective controlsMRT mask

The MRT mask currently selects authored objects; click a shape in the scene to toggle its bloom eligibility.

Selective bloom contractBloomNode + MRT
outputMRT color

beauty

bloomIntensityMRT mask

0 / 0

bloom inputmultiply

output × mask

bloom()addon node

threshold 0.04

targetmulti-mip

0.50×

ownershipexplicit cleanup

graph 0

The scene pass writes beauty and bloom eligibility into named MRT outputs; BloomNode receives only the masked beauty texture.

The official selective example toggles a per-material bloomIntensity uniform and multiplies the named mask attachment into the bloom input.

Derived from the official selective bloom example, BloomNode, PassNode, and MRTNode docs. Use ?forceWebGL=1 to inspect the direct WebGL2 fallback.

LAB 229 / SELECTIVE BLOOM