# Sparkles Materials

You can create interesting Materials for your sparkles by using some attributes provided by Laser System.

You can look the **CGP\_Sparkles\_Variant\_Emit\_Smoke** material that is used to display Explosion with smoke.

{% hint style="info" %}
This Material has been made thanks to the great tutorial of **Pierrick Picaut** that you can find below.
{% endhint %}

To leverage your Material possibilities, you can use the "**duration**" and "**lifetime**" attributes. Those attributes allow you to animate your Material over time.

Just add 2 Attribute Nodes, with Type set to "Instancer".

<figure><img src="https://1840282185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdZqFoP3gpYFkMHm6puBM%2Fuploads%2FgaDVFDGyf39mK6UclXlC%2Fimage.png?alt=media&#x26;token=f77f9234-3a8e-4ed6-8290-c35519d4afea" alt=""><figcaption><p>Attribute Nodes</p></figcaption></figure>

* **duration**: How many frames the particle has been alive
* **lifetime**: Total particle's lifetime

You can use them to change the display over time. For the Smoke Material, we use emission and progressively display a Transparent Shader.

<figure><img src="https://1840282185-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdZqFoP3gpYFkMHm6puBM%2Fuploads%2FWeoFS5eWInXnx21ymFIm%2Fimage.png?alt=media&#x26;token=44e54e5e-6c84-42e4-8f83-0c63bb51c086" alt=""><figcaption><p>CGP_Sparkles_Variant_Emit_Smoke Material</p></figcaption></figure>

Pierrick Picaut Tutorial (In 3 parts):

{% embed url="<https://www.youtube.com/watch?v=uPMhItuWOv8>" %}
