added texture mapping for meshes