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
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info