1 2 3 4 5 6 7 8
#extension GL_ARB_explicit_attrib_location: require layout(location = 2) in vec3 color; vec3 function(void) { return color * 3.0; }