I’m rookie… after reading a Mortar/brick simple sample I’ve got a question, in the sample a flat polygon is shaded in a brick pattern. But the polygon has only four vertex, how does the all vertice feed the fragment shader to create a full resolution pattern?? are the vertice interpolated before go to the fragment shader? or fragment is interpolated?
The rasterizer interpolates every vertex attribute across the primitive, thus generating the fragments that fill up the primitive. This happens after the vertex shader. The fragments then are fed into the fragment shader. If you want more detailed info, read the specs.
thank you~ so its the charactoristic of openGL, right? I aware thats why even without shader, we can see a full flat polygon, not just four points on the screen.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.