Currently, I am using Three.js to work on a project where I have a sphere and I'm attempting to apply this eyeball image here onto it.
The issue I am facing is that the outcome appears stretched, as shown below:
How can I properly map the texture without any distortion?
Below is my code for creating the sphere and applying the texture:
var geometry = new THREE.SphereGeometry(0.5,100,100);
var material = new THREE.MeshPhongMaterial( { map: THREE.ImageUtils.loadTexture('eyeballmap.jpg',THREE.SphericalRefractionMapping) } );
var eyeball = new THREE.Mesh( geometry, material );
eyeball.overdraw = true;
eyeball.castShadow = true;
scene.add( eyeball );