I've always seen it suggested that pipers should wear their full kit when performing, whether indoors or outdoors. If the hat is part of the piper's regalia in the performance of his piping duties, he needn't follow the standard convention of removing it during his performance (although he should remove it when he's not performing, methinks).