VertexAttributeStep

Available since LÖVE 11.0
This enum is not supported in earlier versions.

The frequency at which a vertex shader fetches the vertex attribute's data from the Mesh when it's drawn.

Per-instance attributes can be used to render a Mesh many times with different positions, colors, or other attributes via a single love.graphics.drawInstanced call, without using the love_InstanceID vertex shader variable.

Constants

pervertex
The vertex attribute will have a unique value for each vertex in the Mesh within a single instance.
perinstance
The vertex attribute will have a unique value for each instance of the Mesh.

See Also

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/VertexAttributeStep