move shader compilation from selection to mesh->renderTarget