Garry's Mod Wiki

Revision Difference

mesh.UserData#561901

<function name="UserData" parent="mesh" type="libraryfunc"> <description> A table of four numbers. This is used by most shaders in Source to hold tangent information of the vertex ( tangentX, tangentY, tangentZ, tangentHandedness ). A set of four numbers that can be used for arbitrary purposes by <page>Material</page> shaders. This is most commonly used to provide tangent information about each vertex to the Material's shader.⤶ </description> <realm>Client</realm> <args> <arg name="tangentX" type="number"></arg> <arg name="tangentY" type="number"></arg> <arg name="tangentZ" type="number"></arg> <arg name="tangentHandedness" type="number"></arg> </args> </function>