mesh.Quad
From GMod Wiki
Function | |
Syntax |
mesh.Quad( Vector corner1, Vector corner2, Vector corner3, Vector corner4 ) Where is this used? |
Description: | |
Pushes four vertexes that define a quad. | |
Returns: | nil |
Part of Library: | mesh |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Mesh.Quad]Mesh.Quad [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The quad is made up of only four points, so you need to specify MATERIAL_QUADS as the mesh type.
- There could be more arguments for color, specular and tangents.
- There doesn't seem to be any way to define normals, so you're better off pushing the vertexes yourself.