MeshVertex Structure

From Garry's Mod
Jump to: navigation, search
Table used by various functions, such as IMesh:BuildFromTriangles.



Type Name Description
table color

The vertex color. Uses the Color structure.

Vector normal

The triangles normal required to calculate lighting(optional).

Vector tangent

The triangles tangent. Not used by the VertexLitGeneric shader.

Vector binormal

The triangles binormal. Not used by the VertexLitGeneric shader.

Vector pos

The vertex position.

number u

The u texture scale.

number v

The v texture scale.

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 ).

Personal tools
Navigation