fbpx
Wikipedia

Fragment (computer graphics)

In computer graphics, a fragment is the data necessary to generate a single pixel's worth of a drawing primitive in the frame buffer.

These data may include, but are not limited to:

As a scene is drawn, drawing primitives (the basic elements of graphics output, such as points, lines, circles, text etc.[1]) are rasterized into fragments which are textured and combined with the existing frame buffer. How a fragment is combined with the data already in the frame buffer depends on various settings. In a typical case, a fragment may be discarded if it is farther away than the pixel that is already at that location (according to the depth buffer). If it is nearer than the existing pixel, it may replace what is already there, or, if alpha blending is in use, the pixel's color may be replaced with a mixture of the fragment's color and the pixel's existing color, as in the case of drawing a translucent object.

In general, a fragment can be thought of as the data needed to shade the pixel, plus the data needed to test whether the fragment survives to become a pixel (depth, alpha, stencil, scissor, window ID, etc.). Shading a fragment is done through a fragment shader (or pixel shaders in Direct3D).[2]

In computer graphics, a fragment is not necessarily opaque, and could contain an alpha value specifying its degree of transparency. The alpha is typically normalized to the range of [0, 1], with 0 denotes totally transparent and 1 denotes totally opaque. If the fragment is not totally opaque, then part of its background object could show through, which is known as alpha blending.[3]

See also edit

References edit

  1. ^ The Drawing Primitives by Janne Saarela
  2. ^ Hughes, John F. (2014). Computer Graphics: Principles and Practice. Pearson Education. ISBN 978-0-321-39952-6.
  3. ^ "3D Graphics with OpenGL - The Basic Theory". personal.ntu.edu.sg. Retrieved 2022-01-25.

fragment, computer, graphics, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, fragment, computer, graphics, news, ne. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Fragment computer graphics news newspapers books scholar JSTOR December 2009 Learn how and when to remove this template message In computer graphics a fragment is the data necessary to generate a single pixel s worth of a drawing primitive in the frame buffer These data may include but are not limited to raster position depth interpolated attributes color texture coordinates etc stencil alpha window IDAs a scene is drawn drawing primitives the basic elements of graphics output such as points lines circles text etc 1 are rasterized into fragments which are textured and combined with the existing frame buffer How a fragment is combined with the data already in the frame buffer depends on various settings In a typical case a fragment may be discarded if it is farther away than the pixel that is already at that location according to the depth buffer If it is nearer than the existing pixel it may replace what is already there or if alpha blending is in use the pixel s color may be replaced with a mixture of the fragment s color and the pixel s existing color as in the case of drawing a translucent object In general a fragment can be thought of as the data needed to shade the pixel plus the data needed to test whether the fragment survives to become a pixel depth alpha stencil scissor window ID etc Shading a fragment is done through a fragment shader or pixel shaders in Direct3D 2 In computer graphics a fragment is not necessarily opaque and could contain an alpha value specifying its degree of transparency The alpha is typically normalized to the range of 0 1 with 0 denotes totally transparent and 1 denotes totally opaque If the fragment is not totally opaque then part of its background object could show through which is known as alpha blending 3 See also editGraphics pipeline VertexReferences edit The Drawing Primitives by Janne Saarela Hughes John F 2014 Computer Graphics Principles and Practice Pearson Education ISBN 978 0 321 39952 6 3D Graphics with OpenGL The Basic Theory personal ntu edu sg Retrieved 2022 01 25 Retrieved from https en wikipedia org w index php title Fragment computer graphics amp oldid 1203096459, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.