gl_InstanceID

contains the index of the current primitive in an instanced draw command

Signature

gl_InstanceID( )->