Garry's Mod Wiki

mesh.TexCoord

  mesh.TexCoord( number set, number s, number t, number u = nil, number v = nil )

Description

Sets the texture coordinates for the next vertex.

Arguments

1 number set
The texture coordinate set, 0 to 7.

Non-zero values require the currently bound material to support it. For example, any LightmappedGeneric material supports sets 1 and 2 (lightmap texture coordinates and bump map texture coords?).

2 number s
S coordinate.
3 number t
T coordinate.
4 number u = nil
U coordinate.
This was recently added in version (2025.08.25). It might only be available on the Dev Branch right now.
5 number v = nil
V coordinate.
This was recently added in version (2025.08.25). It might only be available on the Dev Branch right now.