Pass:points
EditDraws points. Pass:mesh can also be used to draw points using a Buffer.
Arguments
| Name | Type | Description |
| x | number | The x coordinate of the first point. |
| y | number | The y coordinate of the first point. |
| z | number | The z coordinate of the first point. |
| ... | * | More points. |
Returns
Nothing
Arguments
| Name | Type | Description |
| t | {number | vector} | A table of numbers or vectors (not both) representing point positions. |
Returns
Nothing
Arguments
| Name | Type | Description |
| v | vector | 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.