Vertex shader vs Fragment Shader [duplicate]
This question already has an answer here: What are Vertex and Pixel shaders? 5 answers I've read some tutorials regarding Cg, yet one thing is not quite clear to me. What exactly is the difference between vertex and fragment shaders? And for what situations is one better suited than the other? The Surrican A fragment shader is the same as pixel shader. One main difference is that a vertex shader can manipulate the attributes of vertices. which are the corner points of your polygons. The fragment shader on the other hand takes care of how the pixels between the vertices look. They are