Shaders are small programs that run on the graphics processing unit (GPU) to control the rendering of 3D graphics. They are used to perform various tasks such as: