barium sulfate used for

When used in food specifically, titanium dioxide is known as an additive called E171 and can be found in products like candy, chocolate, coffee creamer, cake decorations, chewing gum and even vitamin supplements. E171 is often used as coloring additive in foods, to lend the processed item a natural whiteness and opacity — such as in Skittles candy, where it's used as a white base to help give the candies their signature bright, colorful hue.

...

In the field of energy, TiO2 plays a crucial role in the development of photovoltaic cells, also known as solar cells. When combined with other materials, TiO2 forms a photoactive layer that absorbs sunlight and generates electricity When combined with other materials, TiO2 forms a photoactive layer that absorbs sunlight and generates electricity When combined with other materials, TiO2 forms a photoactive layer that absorbs sunlight and generates electricity When combined with other materials, TiO2 forms a photoactive layer that absorbs sunlight and generates electricitytio2. This technology has the potential to significantly reduce our dependence on fossil fuels and combat climate change.

...