Revision Difference
Structures/MeshVertex#517059
<cat>struct</cat>
<structure>
<description>Table used by various functions, such as <page>IMesh:BuildFromTriangles</page>.</description>
<fields>{{StructureField|table|color|The vertex color. Uses the <page>Color</page>.</fields>⤶
<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>
{{StructureField|Vector|normal|The triangles normal required to calculate lighting(optional).}}{{StructureField|Vector|tangent|The triangles tangent. Not used by the VertexLitGeneric shader.}}{{StructureField|Vector|binormal|The triangles binormal. Not used by the VertexLitGeneric shader.}}{{StructureField|Vector|pos|The vertex position.}}{{StructureField|number|u|The u texture scale.}}{{StructureField|number|v|The v texture scale.}}{{StructureField|table|userdata|A table of four numbers. This is used by most shaders in Source to hold tangent information of the vertex ( tangentX, tangentY, tangentZ, tangentHandedness ).⤶
}}⤶
}}