apply the lighting from the reference image