Bloom on transparent geometry#1848
Conversation
- Move bloom into the postprocessing/illumination pass (composited inline) - Tighten isBackground to handle packed transparent depth precisely - Enable bloom on transparent background - Background-aware blend: screen on transparent bg, PMA over on opaque bg, additive on geometry Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
compose.frag's isBackground still used `depth == 1.0`, so packed transparent depth (~0.99999994 at background) was misclassified as geometry and bloom took the additive branch instead of the background blend. Tighten it to match postprocessing.frag and luminosity.frag. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
arose
left a comment
There was a problem hiding this comment.
I like it, thanks!
There are some visual differences for emissive transparent geometry between standard and illumination mode. The emissive transparent geometry is less bright in illumination mode.
Emissive transparent geometry over a transparent background quickly (with higher emissiveness) losses any alpha so that the background is not visible anymore.
Are those intentional, want to change them?
Hi @arose, I missed that, thanks. It should be fixed now. |
|
@arose last commit should fix also this. |
- Composite the premultiplied scene over the background (solid color or gradient/image/skybox environment) with premultiplied-over blending, so transparent objects keep full weight (SRC_ALPHA dimmed them to color*a^2) and bloom occludes the background instead of blowing out on light backgrounds - Render premultiplied for solid background + bloom so the background composites last; unify solid and environment compositing into one premultiplied-over path - Fix bloom composite uTexSizeInv (was texture size, not 1/size) - Un-premultiply the opaque emissive bloom seed so fog no longer darkens halos - Clamp bloom alpha so premultiplied-over never subtracts the background
…olstar into bloom-on-transaprency
|
Now it should behave uniformly, and also fixed a few issues with environment enabled. |
|
last commit should fix this |
|
it also reproduces the same results when exporting with tranparent bg |








Description
Adds bloom support for transparent and emissive geometry, and fixes bloom rendering on a transparent background.
Actions
[Unreleased]section ofCHANGELOG.mdpackage.json'scontributorsdocs