# MSAA without DefaultRenderingPipeline?

**URL:** <https://forum.babylonjs.com/t/msaa-without-defaultrenderingpipeline/9009>\
**Category:** Questions\
**Created:** [March 5, 2020, 1:53pm UTC](https://forum.babylonjs.com/t/msaa-without-defaultrenderingpipeline/9009 "2020-03-05T13:53:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PichouPichou](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pichoupichou/32/316_2.png) [@PichouPichou](https://forum.babylonjs.com/u/PichouPichou)\
**Post date:** [March 5, 2020, 1:53pm UTC](https://forum.babylonjs.com/t/msaa-without-defaultrenderingpipeline/9009/1 "2020-03-05T13:53:22Z")

</div>

The reason why I am asking that is because I want to avoid loading all the postprocess available in the DefaultRenderingPipeline as I am using BabylonJS EcmaScript6 modules.

But I haven’t found another way to launch MSAA without the DefaultRenderingPipeline ?

---

<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 5, 2020, 2:39pm UTC](https://forum.babylonjs.com/t/msaa-without-defaultrenderingpipeline/9009/2 "2020-03-05T14:39:23Z")

</div>

You can enable MSAA on any render target texture you create (use the `samples` property).

---

<div class="post-metadata">

**Author:** ![jayakannan](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jayakannan](https://forum.babylonjs.com/u/jayakannan)\
**Post date:** [March 24, 2021, 4:33am UTC](https://forum.babylonjs.com/t/msaa-without-defaultrenderingpipeline/9009/3 "2021-03-24T04:33:20Z")

</div>

Can you please do it in a playground @Evgeni_Popov . Because, I am under confusion now. What is rendertargetTexture.

---

<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 24, 2021, 10:00am UTC](https://forum.babylonjs.com/t/msaa-without-defaultrenderingpipeline/9009/4 "2021-03-24T10:00:01Z")

</div>

A render target texture is a texture used to render something offscreen, meaning not directly in the visible framebuffer. A pass is needed to copy this texture to the final framebuffer.

A post process is using a render target texture, so you can enable msaa on this texture by simply doing `postprocess.samples = X` (X generally 4 or 8, the max value depending on your GPU).

Here’s a PG that cycles through all the values of samples:

[https://playground.babylonjs.com/#3X7NYB](https://playground.babylonjs.com/#3X7NYB)
