layer-based texturing