Revision Difference
Structures/MeshVertex#552708
<cat>struct</cat>⤶
<structure>
<realm>Shared</realm>
<description>Table structure representing a mesh vertex used by various functions, such as <page>IMesh:BuildFromTriangles</page> and <page>Entity:PhysicsFromMesh</page> and returned by functions such as <page>util.GetModelMeshes</page> and <page>PhysObj:GetMesh</page>.</description>
<fields>
<item name="color" type="table">The vertex color. Uses the <page>Color</page>.</item>
<item name="normal" type="Vector">The triangles normal required to calculate lighting(optional).</item>
<item name="tangent" type="Vector">The triangles tangent. Not used by the VertexLitGeneric shader.</item>
<item name="binormal" type="Vector">The triangles binormal. Not used by the VertexLitGeneric shader.</item>
<item name="pos" type="Vector">The vertex position.</item>
<item name="u" type="number">The u texture scale.</item>
<item name="v" type="number">The v texture scale.</item>
<item name="userdata" type="table">A table of four numbers. This is used by most shaders in Source to hold tangent information of the vertex ( tangentX, tangentY, tangentZ, tangentHandedness ).</item>
</fields>
</structure>