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

前端 未结 2 1086
悲&欢浪女
悲&欢浪女 2021-01-16 13:43

I want to create procedurally generated landscape meshes with a flat shaded look in Unity3D.

I thought it would be the best to create three unique vertices

相关标签:
2条回答
  • 2021-01-16 14:23

    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.

    0 讨论(0)
  • 2021-01-16 14:23

    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.

    0 讨论(0)
提交回复
热议问题