[gs]etMaterial + compilation