more texture mapping code