Shaders
Shaders are small programs that run on the graphics processing unit (GPU) to control how a scene is drawn. They are part of the programmable parts of a graphics pipeline and enable per-vertex, per-fragment, per-primitive, or general-purpose computations that determine color, lighting, textures, and other visual effects.
Common shader types include vertex shaders, which process each vertex’s attributes such as position and normal;
Shading languages describe shader programs. The most widely used are GLSL for OpenGL and WebGL, HLSL for
In practice, shaders implement lighting models, texturing, and effects. They enable both traditional lighting approaches such