# Terrain.MaterialType

> The type of the material used to render a terrain object. Could be one of the built-in types or custom.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TerrainModule

> **Warning:**
>
> **Deprecated.** Enum type MaterialType is not used any more.

```csharp
public enum Terrain.MaterialType
```

## Fields

| Value                                                                                                              | Description                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| [BuiltInLegacyDiffuse](/engine/6000.6/script-reference/unityengine/terrain/materialtype/builtinlegacydiffuse.md)   | A built-in material that uses the legacy Lambert (diffuse) lighting model and has optional normal map support.                         |
| [BuiltInLegacySpecular](/engine/6000.6/script-reference/unityengine/terrain/materialtype/builtinlegacyspecular.md) | A built-in material that uses the legacy BlinnPhong (specular) lighting model and has optional normal map support.                     |
| [BuiltInStandard](/engine/6000.6/script-reference/unityengine/terrain/materialtype/builtinstandard.md)             | A built-in material that uses the standard physically-based lighting model. Inputs supported: smoothness, metallic / specular, normal. |
| [Custom](/engine/6000.6/script-reference/unityengine/terrain/materialtype/custom.md)                               | Use a custom material given by [Terrain.materialTemplate](/engine/6000.6/script-reference/unityengine/terrain/materialtemplate.md).    |
