Beast - Advanced Tessellation Shader
  • Beast - Advanced Tessellation Shader
  • Introduction
  • Shader Options
  • Editor Tool
  • Run-time API
  • Help & Contact
Powered by GitBook
On this page

Run-time API

Last updated 6 months ago

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

using AmazingAssets.Beast;

Unity 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();
    }
}

Mesh