Its hydroxide was known in pre-modern history as baryta ; this substance does not occur as a mineral , but can be prepared by heating barium carbonate .
Barium sulfate can be used as a pigment , too .