I have still problem with fragment shader
The subject is complex and I need to know what stages are involved in the rasterization process .
Assuming that we have 2 triangles and one of them is in front of the other, What stages are involved in the raster level?For example, does it convert the first triangle to 40 pixels and the second one to 60 pixels ?(values are just optional for my example) We know that z buffer is done after fragment shader, so I guess these triangles are still available after raster level?Does rasterization processes all the primitives at once and sends them to the fragment shader or does it convert each primitive( for example that triangle) to pixels and sends these pixels to the fragment shader, then processes the next one and sends it to the fragment shader, etc ?
Assuming that a triangle consists of 40 pixels after raster level, does it mean that the fragment shader processes all these 40 pixels?