Improvements in texturing

Texture coords seem to work slightly better now
moved some calcs out into helper functions (based on virtual globe
engine book)