> For the complete documentation index, see [llms.txt](https://amazing-assets.gitbook.io/beast-advanced-tessellation-shader/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/beast-advanced-tessellation-shader/run-time-api.md).

# Run-time API

Run-time API for calculating mesh with smooth *<mark style="color:blue;">normals</mark>* can be brought into scope with this using directive

```
using AmazingAssets.Beast;
```

Unity [Mesh](https://docs.unity3d.com/ScriptReference/Mesh.html) class now will have <mark style="color:green;">GenerateSmoothNormals</mark> extension method:

```
// Generating mesh with smooth normals

using UnityEngine;

using AmazingAssets.Beast;


public class NewMonoBehaviourScript : MonoBehaviour
{
    public Mesh mesh;
    public Mesh meshWithSmoothNormals;

    private void Start()
    {
        meshWithSmoothNormals = mesh.GenerateSmoothNormals();
    }
}
```
