# Activating Bloom disables AA?

**URL:** <https://forum.babylonjs.com/t/activating-bloom-disables-aa/39440>\
**Category:** Questions\
**Tags:** postprocessing, antialiasing\
**Created:** [March 29, 2023, 9:30am UTC](https://forum.babylonjs.com/t/activating-bloom-disables-aa/39440 "2023-03-29T09:30:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarrus4x4](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sarrus4x4/32/30205_2.png) [@Sarrus4x4](https://forum.babylonjs.com/u/Sarrus4x4)\
**Post date:** [March 29, 2023, 9:30am UTC](https://forum.babylonjs.com/t/activating-bloom-disables-aa/39440/1 "2023-03-29T09:30:07Z")

</div>

Hello Forum 🙂  
In my [Playground](https://playground.babylonjs.com/#WRBQCP#22) I enable the Bloom effect via the defaultRenderingPipeline by pressing a button. But when it activates, the fxaa gets deactivated. There was a similar question/problem [here](https://forum.babylonjs.com/t/enabling-hdr-in-defaultpipeline-disables-aa/14656), but i could not find a solution for my problem there… 😕

The Bloom Toggle happens almost at the very end of my Code…

The solution of the other Post:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/c/2c3244049b7c0262c92e98bf7fefa2cfd5591a51.png)  
But i dont have a BloomInstance. Instead i just use the Bloom feature of the default Pipeline…

I am grateful for any Help!

---

<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:** [March 29, 2023, 10:21am UTC](https://forum.babylonjs.com/t/activating-bloom-disables-aa/39440/2 "2023-03-29T10:21:36Z")

</div>

Actually, it’s the volumetric lighting post process which is missing MSAA: add `godrays.samples = 4;` to fix the problem.

---

<div class="post-metadata">

**Author:** ![Sarrus4x4](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sarrus4x4/32/30205_2.png) [@Sarrus4x4](https://forum.babylonjs.com/u/Sarrus4x4)\
**Post date:** [March 29, 2023, 11:07am UTC](https://forum.babylonjs.com/t/activating-bloom-disables-aa/39440/3 "2023-03-29T11:07:53Z")

</div>

Thank you, that works! But it is strange… if I just don’t use the bloom effect, the AA stays on 😃  
I am relatively new to Babylon, maybe I lack the basic understanding of the workings of BJS.

---

<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:** [March 29, 2023, 11:19am UTC](https://forum.babylonjs.com/t/activating-bloom-disables-aa/39440/4 "2023-03-29T11:19:40Z")

</div>

Adding the bloom can change the order of texture creation/use, and the texture with MSAA should be the very first one in the post-processing chain because it is the one we render the scene in. Honestly, I haven’t looked into the details of why MSAA should be enabled in the volumetric lighting post-process 🙂
