How to apply offsets for texture atlas in InstancedMesh?

Does it have to look something like this?