# MultiRenderTarget and ParticleSystem error

**URL:** <https://forum.babylonjs.com/t/multirendertarget-and-particlesystem-error/50535>\
**Category:** Questions\
**Created:** [May 14, 2024, 7:22am UTC](https://forum.babylonjs.com/t/multirendertarget-and-particlesystem-error/50535 "2024-05-14T07:22:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudending](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cloudending/32/38103_2.png) [@cloudending](https://forum.babylonjs.com/u/cloudending)\
**Post date:** [May 14, 2024, 7:22am UTC](https://forum.babylonjs.com/t/multirendertarget-and-particlesystem-error/50535/1 "2024-05-14T07:22:59Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#KJUEKZ%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

as the playground shows. Mixing multirendertargets and particle system will generate error  
`Active draw buffers with missing fragment shader outputs`. But it seems no display error and just prints the warning message.

---

<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:** [May 14, 2024, 10:10am UTC](https://forum.babylonjs.com/t/multirendertarget-and-particlesystem-error/50535/2 "2024-05-14T10:10:04Z")

</div>

The default particle shader is not meant to be used in the context of multi render targets.

You should either disable particle rendering in the multi render target (`RttSphere.renderParticles = false;`), or if you want the particles to be rendered in the target, you should provide your own shader, that can support multi render targets. Something like:

> **[Babylon.js Playground](https://playground.babylonjs.com/#KJUEKZ%235)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

More information on customs shaders for particle systems:

[https://doc.babylonjs.com/features/featuresDeepDive/particles/particle\_system/customizingParticles#custom-effects](https://doc.babylonjs.com/features/featuresDeepDive/particles/particle_system/customizingParticles#custom-effects)

---

<div class="post-metadata">

**Author:** ![cloudending](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cloudending/32/38103_2.png) [@cloudending](https://forum.babylonjs.com/u/cloudending)\
**Post date:** [May 15, 2024, 2:25am UTC](https://forum.babylonjs.com/t/multirendertarget-and-particlesystem-error/50535/4 "2024-05-15T02:25:58Z")

</div>

It works and thanks a lot for the custom shader code
