Revision Difference
Structures/MeshVertex#527074
<cat>struct</cat>
<structure>
<realm>Client</realm>⤶
<description>Table used by various functions, such as <page>IMesh:BuildFromTriangles</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>