#version 140 in vec4 position; uniform samplerBuffer offset; void main() { gl_Position = position + texelFetch(offset, gl_InstanceID); }