Garry's Mod Wiki

MeshVertex

MeshVertex

Description

Table structure representing a mesh vertex used by various functions, such as IMesh:BuildFromTriangles and Entity:PhysicsFromMesh and returned by functions such as util.GetModelMeshes and PhysObj:GetMesh.

Parameters

color [table]

The vertex color. Uses the Color.

normal [Vector]

The triangles normal required to calculate lighting(optional).

tangent [Vector]

The triangles tangent. Not used by the VertexLitGeneric shader.

binormal [Vector]

The triangles binormal. Not used by the VertexLitGeneric shader.

pos [Vector]

The vertex position.

u [number]

The u texture scale.

v [number]

The v texture scale.

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

Special Pages


Wikis

?

Render Time: 73ms

DB GetPage 49
Generate Html 7
SaveChanges (1) 9
Render Body 0
Render Sidebar 6