Normalize normal vector and moved test code to texcoord