> For the complete documentation index, see [llms.txt](https://amazing-assets.gitbook.io/terrain-to-mesh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amazing-assets.gitbook.io/terrain-to-mesh/run-time-api/terraintomeshutilities/getdefaultshader.md).

# GetDefaultShader

### Get Default Shader

```csharp
Shader GetDefaultShader()
```

Returns shader used by Unity's default material based on the used render pipeline. This is the same shader used by the material when creating a new 3D Object inside Editor.
