Using instancing in geometry shader for periodic boundary conditions.