Garry's Mod Wiki

mesh.QuadEasy

  mesh.QuadEasy( Vector position, Vector normal, number sizeX, number sizeY, table color )

Description

Adds a quad (4 vertices) to the currently built mesh, by using position, normal and sizes. See mesh.Begin.

See also mesh.Quad.

Arguments

1 Vector position
The center of the quad.
2 Vector normal
The normal of the quad.
3 number sizeX
X size in pixels.
4 number sizeY
Y size in pixels.
5 table color
The color for the vertices.