Unityを使っていると、外部からインポートしたFBXファイルのオブジェクトはスムーズに表示されるけれど、スクリプトからMesh
のvertices/triangles
を設定したオブジェクトはフラットな感じに表示されてしまうことがあります。

そういう場合はNormalの計算方法を見直してみると良いそうです。
A better method to recalculate normals in Unity – Part 2 – The Scheming Developer
http://schemingdeveloper.com/2017/03/26/better-method-recalculate-normals-unity-part-2/

リンク
Unity – Scripting API: Mesh
https://docs.unity3d.com/ScriptReference/Mesh.html
Unity – Scripting API: Mesh.RecalculateNormals
https://docs.unity3d.com/ScriptReference/Mesh.RecalculateNormals.html