Add support for assigning textures to multiple sets of texture coordinates

Copied from https://github.com/virtual-world-framework/three.js.git
Revision 080d8059f35c0baa205f623e79b2faf5e4cf0872

Refs #2464