Hey, I am making a solar system and i updated the last code to this. I applied bloom for sun glow effect. But venus is also glowing (coz textures of sun and venus are pretty similar).
I tried a solution of layers, glow for venus is gone but sun is not visible. I wrote a debug line if sun is visible, and it is true.
The above code is theprevious one, where sun and venus are glowing.
I suggest you upgrade to WebGPURenderer and use the new post processing system which solves the issue in convenient ways. First, you can control which objects should receive bloom by modulating emissive. With the correct MRT setup, you can generate bloom based on just the emissive part of the scene like in webgpu_postprocessing_bloom_emissive.
If you need more flexibility, you can use the approach from webgpu_postprocessing_bloom_selective which let’s you apply selective bloom based on a separate intensity property that you can toggle per material.