.. _BlastTool_MaterialSettings:

Material Tab
###################################

The Blast *Materials Tab* allows you to set material IDs to your blast object. You can add vertex colors to the *Blast Mesh* or load textures to the Diffuse, Specular and Normal settings. In a simple object Material ID 1 is the outside of the *Blast Mesh* and Material ID 2 represents the inside faces of the *Blast Mesh* fractures. If you're exporting to UE4 the Material ID would populate as Element 0 and 1 in the material settings. 

.. image:: \_static\BLAT_MaterialsTab.jpg

Material Library
-----------------
Add and set materals Diffuse, Specular and Normal Map to your *Blast Mesh*. 

.. image:: \_static\BLAT_MaterialLib.jpg
|

**Material Controls** 

* |AddMat| **Add Material** - Add a new Material which starts by launching a select name dialog. 

.. |AddMat| image:: \_static\BLAT_Playlists_Add.jpg

* |EditMat| **Edit Selected Material** - Edit the name of the selected Material. 

.. |EditMat| image:: \_static\BLAT_Material_Edit.jpg

* |DeleteMat| **Delete Selected Material** - Delete the selected Playlist. 

.. |DeleteMat| image:: \_static\BLAT_TextureRemove.jpg


Render Attributes
=======================

.. image:: \_static\BLAT_RenderAttributes.jpg
|

* **Diffuse Color** - Set a vertex color or set a texture that serves as a base color of the *Blast Mesh*. 

* **Specular Color** - Set a vertex color or set a texture that serves as the shininess for the *Blast Mesh*.

* **Specular Shininess** - Value sets the amount of shininess of the specular color or texture. 

* **Normal Texture** - Set a texture to serve as a normal map for the material for the *Blast Mesh*. 


Texture Input Buttons
======================

|OpenTex| **Open File Texture**  Opens a file dialogue to load a file texture

.. |OpenTex| image:: \_static\BLAT_TextureLoad.jpg 
 
|ReOpenTex| **Reopen File Texture**  Texture is currently loaded. Hover over the icon to get a tool tip with the loaded file path. Clicking the button opens a file dialog to load a different file texture. 

.. |ReOpenTex| image:: \_static\BLAT_TextureLoaded.jpg

|ReLoadTex| **Reload File Texture**  Reload a file texture if one is already loaded. 

.. |ReLoadTex| image:: \_static\BLAT_TextureReload.jpg

|RemoveTex| **Remove File Texture** Remove a file texture. 

.. |RemoveTex| image:: \_static\BLAT_TextureRemove.jpg


Material Assignments
=========================
After setting Materials, you can set materials here. Material ID 1 is the outside shell of the mesh, and Material ID 2 is the inside of the mesh. It can be set here or in the Blast Tab. 

.. image:: \_static\BLAT_RenderAttributes.jpg
|

The Added materials will appear in the ID dropdowns. 

Using the Material Library 
---------------------------

After Fracturing your mesh you can set the materials. I'm using the names Outside and Inside for this example but you can use whatever naming convention that you'd like. 

1. With the mesh selected go to the **Materials Tab** and Add a material with the + button. 

.. image:: \_static\BLAT_AddMaterial.jpg
|

2. Add an Outside and an Inside material and select a color or add a texture for the Diffuse for each material.
3. Set the Material IDs. Material ID 1 is the outside faces of the *Blast Mesh*. Material ID 2 is the Inside (fractured) faces of the *Blast Mesh*. 

.. image:: \_static\BLAT_MaterialColor.jpg
	:width: 1080px
|

