attribute

fun <T : Variable> attribute(factory: (GlslGenerator) -> T, precision: Precision = Precision.DEFAULT, predicate: Boolean = true): AttributeDelegate<T>

Data that may change per vertex. Passed from the OpenGL context to the Vertex Shader.

Parameters

predicate

if true then this attribute will be generated.