Run-time API

Run-time API for calculating mesh with smooth normals can be brought into scope with this using directive

using AmazingAssets.Beast;

Unity Mesh class now will have GenerateSmoothNormals 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();
    }
}

Last updated