# smoothnessSource

> Choose the source for smoothness value.

## Definition

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

```csharp
public TerrainLayerSmoothnessSource smoothnessSource { get; set; }
```

### Remarks

Used for choosing where smoothness value comes from when [TerrainLayer.diffuseTexture](/engine/6000.6/script-reference/unityengine/terrainlayer/diffusetexture.md) has an alpha channel. Setting to [TerrainLayerSmoothnessSource.ConstantMultipliedByDiffuseAlpha](/engine/6000.6/script-reference/unityengine/terrainlayersmoothnesssource/constantmultipliedbydiffusealpha.md) results in using a mix of the smoothness value set in [TerrainLayer.smoothness](/engine/6000.6/script-reference/unityengine/terrainlayer/smoothness.md) and of the [TerrainLayer.diffuseTexture](/engine/6000.6/script-reference/unityengine/terrainlayer/diffusetexture.md) alpha channel. Setting to [TerrainLayerSmoothnessSource.DiffuseAlphaChannel](/engine/6000.6/script-reference/unityengine/terrainlayersmoothnesssource/diffusealphachannel.md) results in using the smoothness value set from the alpha channel of [TerrainLayer.diffuseTexture](/engine/6000.6/script-reference/unityengine/terrainlayer/diffusetexture.md). Setting to [TerrainLayerSmoothnessSource.ConstantOnly](/engine/6000.6/script-reference/unityengine/terrainlayersmoothnesssource/constantonly.md) results in using the smoothness value set in [TerrainLayer.smoothness](/engine/6000.6/script-reference/unityengine/terrainlayer/smoothness.md).
