Do I have to use shared vertices in mesh in Unity?

断了今生、忘了曾经 提交于 2019-12-01 12:09:42

The simple answer is

No,

Unity does not, in the slightest, "look for" shared verts. No 3D pipeline has anything to do with shared verts. Shared verts does not help or hinder the 3D pipeline in anyway at all.

(Very often, when for example we are making dynamic mesh, we just "never use shared verts at all" because, as you have probably found, it's often far simpler to not use shared verts.)

The one and only reason to use shared verts is if, for some reason, it happens to make it more convenient for you. In that case the 3D pipeline (Unity or elsewhere) "allows" shared verts, with no downside.

There might be 2 considerations for using shared vertices:

  • To reduce memory usage. (Only slightly, but if you need less UV1's, UV2's, normals, vertices it can add up)
  • to make it more convenient to share normals. (You only have to alter one normal of a vertex if you want to keep the surface smooth. )

These are no big reasons, but as most of the meshes from other 3D programs that you encounter, it's probably best to get used to shared vertices.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!