173k views
2 votes
What is the difference between a fragment shader and vertex shader? How do they relate?

User Dung Phan
by
6.1k points

1 Answer

7 votes

Answer:

vertex shader is performed, while on each pixel, fragment shader is achieved. The shader fragment is implemented after the implementation of shader vertex

Step-by-step explanation:

A shader fragment is the same as a shader for pixels.

A major distinction is that a shader of the vertex can alter the vertices characteristics. whixch are the end points of polygon

On the other side, the fragment shader is responsible for the display of the pixels between the vertices. They are interpolated by particular guidelines between the specified vertices.

On each vertex, vertex shader is performed, while on each pixel, fragment shader is achieved. The shader fragment is implemented after the implementation of shader vertex

User Matt Alcock
by
6.5k points