<<< Shader is a program | Index | Compiling a shader program >>> |
Vertex shader
Changes the position of a vertex (translate/rotate/scale/skew)
May determine color of the vertex
Fragment shader
Determines the color of a pixel
Calculates lighting using materials, normals, and textures
<<< Shader is a program | Index | Compiling a shader program >>> |