Command Palette

Search for a command to run...

Hectal
Back to the lesson: Topic 15.3 — Bloom and Glow
3D Web · Example 2 of 2

Selective bloom with layers

Two composers: the first blooms only layer 1 (the lamp), the second draws the real scene and adds the glow. The wall is twice as bright as white and still does not glow.

Bloom makes very bright pixels glow into their surroundings, like a lamp seen through mist. Three numbers control it (threshold, strength, radius), a brightness trick keeps it on the lights only, and it costs a chain of smaller pictures.

Change the code and press Run (Ctrl+Enter). Predict what will happen first, then break it on purpose and read what changes. Your edits are saved and match the lesson page.

Ready for more? This phase has 4 hands-on exercises with automatic checks.

Practice questions

Write the code in the editor, run it, then open the model answer to compare.

01

A showroom's brightest lit paint reaches linear brightness 0.8 and the headlight lens is 5. What threshold would you use, and why not 0?

02

Write the lines that put only the headlight lens on layer 1 and test whether an object is on it.

Explain it without notes

01

Why can bloom pick out a lamp from the other surfaces, and when does that stop working?

02

How do you cut bloom's cost on a phone?

Selective bloom with layers
Press Run to see the page.
idle

Console

Nothing logged yet.

Expected console output

threshold 1:      beside the wall 255 | beside the lamp 135
selective layers: beside the wall 15 | beside the lamp 115