# Question about glowlayer optimization solution

**URL:** <https://forum.babylonjs.com/t/question-about-glowlayer-optimization-solution/28535>\
**Category:** Questions\
**Created:** [March 18, 2022, 1:45pm UTC](https://forum.babylonjs.com/t/question-about-glowlayer-optimization-solution/28535 "2022-03-18T13:45:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DWork](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@DWork](https://forum.babylonjs.com/u/DWork)\
**Post date:** [March 18, 2022, 1:45pm UTC](https://forum.babylonjs.com/t/question-about-glowlayer-optimization-solution/28535/1 "2022-03-18T13:45:44Z")

</div>

I think that the glow effect is very important to enchance visual effect in scene. However it will produce double drawcalls, lower FPS. Babylon porvide some method, just like ‘addExcludedMesh,  
addIncludedOnlyMesh, removeExcludedMesh, removeIncludedOnlyMesh’ to reduce drawcalls which can achieve the reduction, but the glow texture always in front the scene, so we get poor user experience.

Here’s an example from three.js, use FBO technology to solve it.  
[webgl\_postprocessing\_unreal\_bloom\_selective](https://threejs.org/examples/#webgl_postprocessing_unreal_bloom_selective)  
Combining two render(glow and non glow) textrue before rendering, output the final textrue to screen.  
I’m not sure it’s an solution for babylon.js ? 😉

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 18, 2022, 4:59pm UTC](https://forum.babylonjs.com/t/question-about-glowlayer-optimization-solution/28535/2 "2022-03-18T16:59:48Z")

</div>

This is different from the glow which does not require a high intensity on the main pass.

Here it is more like bloom that Babylon supports as well: [Using the Default Rendering Pipeline | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/postProcesses/defaultRenderingPipeline#bloom)

---

<div class="post-metadata">

**Author:** ![han\_Gao](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/han_gao/32/28345_2.png) [@han\_Gao](https://forum.babylonjs.com/u/han_Gao)\
**Post date:** [April 24, 2023, 6:40am UTC](https://forum.babylonjs.com/t/question-about-glowlayer-optimization-solution/28535/3 "2023-04-24T06:40:25Z")

</div>

So,Can I control a part of mesh to add bloom effect use Babylon’s BloomEffect?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 24, 2023, 10:09am UTC](https://forum.babylonjs.com/t/question-about-glowlayer-optimization-solution/28535/4 "2023-04-24T10:09:29Z")

</div>

No, the bloom effect is a post-processing that applies to the whole image, it cannot be adjusted per mesh.
