Just now, nOoNEE said:
i am reading this book : link
in the OpenGL Rendering Pipeline section there is a picture like this: link
but the question is this i dont really understand why it is necessary to turn pixel data in to fragment and then fragment into pixel could please give me a source or a clear Explanation that why it is necessary ? thank you so mu
In OpenGL you can have subpixel accuracy when bilinear filtering is active.
So a fragment is one of that subpixels, but when nearest filter is active - a fragment equals one pixel.
Also a fragment is always a filled portion of a geometric object, such as a triangle, quad, etc - A pixel is just one point on your screen - not necessarily to be filled. Oh and fragments are defined in clip-space and pixels are obviously in screen space.
https://www.khronos.org/opengl/wiki/Fragment_Shader
And if you are really want to know how a 3D renderer such as OpenGL works, you can check out: https://www.youtube.com/watch?v=Y_vvC2G7vRo&list=PLEETnX-uPtBUbVOok816vTl1K9vV1GgH5