Vertexshaders
Vertex shaders are programmable stages in modern graphics pipelines responsible for processing individual vertices. They replace fixed-function vertex processing with programmable shading, running on the GPU and executed once per vertex before rasterization. Vertex shaders receive per-vertex attributes such as position, normal, color, texture coordinates, bone weights, and other data supplied by the application or previous pipeline stages. They also receive uniform variables from the application, including transformation matrices (model, view, projection), lighting parameters, and material properties.
The primary role of a vertex shader is to transform vertex positions from object space to clip
In modern graphics APIs such as OpenGL, Direct3D, Vulkan, and Metal, vertex shaders are written in shading
Vertex shading is foundational to 3D rendering, providing the first programmable stage and enabling essential transformations