Shader
A shader is a small program that runs on the graphics processing unit (GPU) to determine how to render graphics. Shaders are part of a programmable graphics pipeline, replacing fixed-function stages with configurable code that can implement vertex transformations, lighting calculations, texture sampling, color output, and post-processing effects. They are designed to run in parallel across many lightweight threads to handle large numbers of vertices or pixels efficiently.
Common shader types include vertex shaders, fragment (pixel) shaders, geometry shaders, tessellation shaders, and compute shaders.
Shaders are written in shading languages such as GLSL (OpenGL Shading Language), HLSL (High-Level Shading Language
Historically, shaders emerged with programmable GPUs in the late 1990s, enabling more flexible and realistic rendering.