Changed TexCoord calculations to vertex shader

This fixes Issue #10, and moves calculation of the texture coordinates to the vertex shader.