texture mapping and wall if statements