Wrap indices when generating normal maps