This is one way (of many....) of instancing in opengl, that is, drawing more than one instance of an object with the same draw call. Using glDrawArraysInstanced()
Watch video OpenGL Instancing with gl InstanceID Vertex Shader Visual Studio 2017 online without registration, duration online in high quality. This video was added by user LearningOpenGL 19 October 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,066 once and liked it 12 people.