Learning to glaze