Foundation for texture mapping