Variable names in texture mapping changed for clarity