Fragment: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Created page with "A fragment is a rendering concept which is roughly analogous to a single pixel on the output display (as opposed to a texel on an input texture). In practice, there is..."
 
No edit summary
Line 4: Line 4:


When a fragment is hit by multiple overlapping primitives, [[overdraw]] occurs. This is considered a waste of GPU performance and should be minimized.
When a fragment is hit by multiple overlapping primitives, [[overdraw]] occurs. This is considered a waste of GPU performance and should be minimized.
[[Category:Texture mapping]]

Revision as of 04:05, 17 January 2018

A fragment is a rendering concept which is roughly analogous to a single pixel on the output display (as opposed to a texel on an input texture). In practice, there is not a 1:1 mapping between fragments and device pixels for a large variety of reasons, the most obvious of which is anti-aliasing (which introduces additional fragments for some pixels).

When rendering a given primitive, the fragment shader is run once per fragment hit (with the possible exception of fragments that are early z-culled).

When a fragment is hit by multiple overlapping primitives, overdraw occurs. This is considered a waste of GPU performance and should be minimized.