# SolidParticleSystem: Fade out particles over time?

**URL:** <https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081>\
**Category:** Questions\
**Created:** [April 17, 2020, 11:14am UTC](https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081 "2020-04-17T11:14:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joerg\_Plewe](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/joerg_plewe/32/7426_2.png) [@Joerg\_Plewe](https://forum.babylonjs.com/u/Joerg_Plewe)\
**Post date:** [April 17, 2020, 11:14am UTC](https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081/1 "2020-04-17T11:14:42Z")

</div>

Hi all!

I’d like to make my particles fade out over time. I fiddled with `SolidParticle.color.a` but cannot see any effect (although `sps.computeParticleColor = true`).

At best I’d even like to have a texture on the particle. The effect should be ‘vanishing smoke’.

How to?

Thanks for any help,

. J

---

<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:** [April 17, 2020, 12:28pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081/2 "2020-04-17T12:28:55Z")

</div>

Adding @jerome our SPS guru

---

<div class="post-metadata">

**Author:** ![jerome](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jerome/32/22_2.png) [@jerome](https://forum.babylonjs.com/u/jerome)\
**Post date:** [April 17, 2020, 12:44pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081/3 "2020-04-17T12:44:33Z")

</div>

[https://doc.babylonjs.com/how\_to/solid\_particles#colors-and-uvs](https://doc.babylonjs.com/how_to/solid_particles#colors-and-uvs)  
If you want to set an alpha value, don’t forget to enable the alpha channel for vertex colors :

```auto
SPS.mesh.hasVertexAlpha = true;

```

---

<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:** [April 17, 2020, 12:45pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081/4 "2020-04-17T12:45:15Z")

</div>

Mouahahahaahahaah how can I have missed this one 🙂 thanks @jerome

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [April 17, 2020, 1:06pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-fade-out-particles-over-time/10081/5 "2020-04-17T13:06:49Z")

</div>

Here’s an example using a texture and [opacity texture](https://doc.babylonjs.com/how_to/more_materials#opacity) (lines 19 and 20) , sps.mesh.hasVertexAlpha set to true (line 94) and uses deltaTime to fade particle (lines 64 - 66, 75 - 77, 10, 104)

[https://www.babylonjs-playground.com/#WCDZS#203](https://www.babylonjs-playground.com/#WCDZS#203)

Have fun playing and achieving what you want.
