#title Serenity3D [RCBasic Doc]
#header Serenity3D Material Editor

The material editor allows you to create, edit, and view materials. On the left side is the material list and above it is buttons for creating materials, loading existing materials, and deleting materials.


The main properties panel is where a majority of settings for the material is set.
#image "images/serenity_material_properties.png", w=600, h=600
<br>


The texture panel is where you set textures for the material. Each material can have multiple texture levels which you can set here.
#image "images/serenity_material_texture_panel.png"
<br>

The FX Varialbe panel is where you can set variables that are used to control FX Materials. Check the SetMaterialConstant() function for info on which variables are available on which materials.
#image "images/serenity_fx_var_panel.png"
#ref SetMaterialConstant
<br>


The material preview allows you to view the current material on a mesh.
#list ul
#li Preview Controls - Hold the Middle Mouse button and move left/right to rotate the camera around the object
#/list
<br>

<p>#1 - The default mesh is a cube but you can change it by clicking material mesh preview button on the tool bar below the preview.</p>
<p>#2 -The last option allows you to edit the camera actions on the material view.</p>
#image "images/material_preview_settings.png"
<br>


If lighting is checked, then you will need to enable a light on the preview window to view it.
#list ol
#li No Light
#li Directional Light
#li Spot Light
#/list
#image "images/material_preview_light.png"
<br>
