How can I properly display a texture on a cylinder object using THREE.js without distortion? Currently, the texture appears stretched along the edges of the cylinder as shown here: https://i.sstatic.net/O2YFr.png
This issue is based on the texture provided here: https://i.sstatic.net/gdN1y.jpg
I am aiming for a result similar to the "generated" texture coordinate setting in Blender Cycles which avoids distortion. See an example here: https://i.sstatic.net/A8QAP.png
In THREE.js, how can I adjust the texture coordinates to achieve this effect?
EDIT::: There's been a request for the actual source code, so here it is (even though it's complicated):
var COBY = new (function() {
// Source code goes here
})();