# Material Editor

The **Material Editor** allows us to create a **Material** that gives a **Mesh** a specific visual appearance when it comes into contact with **Light** in a **Scene**. The **Material** files have `.incmat` as their filename extension.

To open the **Material Editor**, double-click on a **Material** file in the **Asset Manager** or right-click on the Menu bar and click on **Material Editor** from the drop-down list. The latter option can be seen in the illustration below:

![](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-38bf5c0d1e0ebf6fbc63625bbe2a9ec6e8caee2b%2Fmaterialeditor120241.png?alt=media)

The sections defined in the **Material Editor** are discussed below. They will not be displayed in the **Material Editor** if a **Material** file has already been opened.

The `Used Materials` section has **Materials** that have been previously applied to a **Mesh** in a **Scene**. These **Materials** can be edited by clicking on them.

`New Material`, as its name suggests, allows us to create new **Materials**. The illustration below depicts its behavior when clicked.

![](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-5c1291037e15b996497503f5541b03283f196fbc%2Fmaterialeditor220241.gif?alt=media)

`Open Material` opens a window that allows us to select an existing **Material** file. An example of the window is shown below:

![](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-93f602bdf01d5f3159d0ebe3ded4b51eebcce42e%2Fmaterialeditor320241.png?alt=media)

Once a **Material** has been opened, the **Material** **Editor** allows the user to edit the **Material's** **Attributes**.

![Shading Models Menu](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-25e6712f8f88c7d24d91c2bae14f46d74e07924b%2Fmaterialeditor420241.png?alt=media)

There are several **Shading** **Models** available to choose from when creating a new **Material**. The following sections give a brief description of each and list their available **Attributes**:

* [**Car Paint Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/car-paint-model)
* [**Custom Shading Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/customshadingmodel)
* [**Phong Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/phong-model)
* [**Glass Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/glass-model)
* [**Extended PBR Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/extended-pbr-model)
* [**PBR Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/pbr-model)
* [**Shadeless Model**](https://docs.incari.com/incari-studio/2024.1/modules/material-editor/shadeless-model)

In each of these **Models**, it is possible to hover over each **Attribute** with the cursor and see their property names. Below, one can see the property name `diffuse_color` for the `Color` **Attribute** of a **Phong Model**.

![Hovering over Names.](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-4050b22e3280974bcf5afd3f69d739fd94d088f5%2Fmaterialeditor520241.png?alt=media)

These can then be copied and pasted by right-clicking on them, selecting either property `Name` or `Value`, and pasting where needed. This is particularly useful for accessing the names for the [**Set Material Property**](https://docs.incari.com/incari-studio/2024.1/toolbox/incari/material/setmaterialproperty) and [**Get Material Property**](https://docs.incari.com/incari-studio/2024.1/toolbox/incari/material/getmaterialproperty) **Nodes**.

![Copying a Name.](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-4efc43a9ff0d99a00528e7c81ad4a94f036fc57a%2Fmaterialeditor620241.png?alt=media)

## See Also

* [**Mesh**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2024.1/modules/objects-and-types/scene-objects/mesh.md)

## External Links

* More on [*Normal Mapping*](https://en.wikipedia.org/wiki/Normal_mapping) on Wikipedia.
* More on [*Environment Mapping*](https://en.wikipedia.org/wiki/Reflection_mapping) on Wikipedia.
* More on [*Specular Reflection*](https://en.wikipedia.org/wiki/Specular_reflection) on Wikipedia.
* More on [*Diffuse Reflection*](https://en.wikipedia.org/wiki/Diffuse_reflection) on Wikipedia.
* More on [*Fresnel Shading*](http://kylehalladay.com/blog/tutorial/2014/02/18/Fresnel-Shaders-From-The-Ground-Up.html) on Kyle Halladay's blog.
* More on [*Albedo Shading*](https://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-shading/diffuse-lambertian-shading) on Scratchapixel.
