It is also used to make cadmium sulfide , a pigment .
It is also a precursor to cadmium-based pigment such as cadmium sulfide .