Pass:points

Draws points. Pass:mesh can also be used to draw points using a Buffer.


Pass:points(x, y, z, ...)

Arguments

NameTypeDescription
xnumber The x coordinate of the first point.
ynumber The y coordinate of the first point.
znumber The z coordinate of the first point.
...* More points.

Returns

Nothing


Pass:points(t)

Arguments

NameTypeDescription
ttable A table of numbers or Vec3 objects (not both) representing point positions.

Returns

Nothing


Pass:points(v, ...)

Arguments

NameTypeDescription
vVec3 A vector containing the position of the first point to draw.
...* More points.

Returns

Nothing

Notes

To change the size of points, set the pointSize shader flag in lovr.graphics.newShader or write to the PointSize variable in the vertex shader. Points are always the same size on the screen, regardless of distance, and the units are in pixels.

See also