Garry's Mod Wiki

Revision Difference

Structures/MeshVertex#516804

<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>⤶ ⤶ </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 ).⤶ {{Structure⤶ |Description=Table used by various functions, such as <page>IMesh:BuildFromTriangles</page>.|Fields={{StructureField|table|color|The vertex color. Uses the <page>Color</page>.}}{{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 ).⤶ }} }}