
Fragment Shader
A fragment shader is a small program used in computer graphics to determine the color and appearance of each pixel in an image. When a scene is rendered, the graphics processor calculates which pixels are visible, and the fragment shader then decides the final color, texture, lighting, and transparency for each pixel. Think of it as a detailed colorist that fine-tunes how each tiny part of an image looks, enabling complex effects like realistic lighting, shadows, and textures to be created efficiently.