We are now making use of the uv attribute that Three.js provides. In the vertex shader it is simply passed through to the freshly declared varying texCoord. In the fragment shader the interpolated value is used to look up into the texture.
uv
texCoord