Düzenle

Aracılığıyla paylaş


Depth and stencil buffers

A depth buffer stores depth information to control which areas of polygons are rendered rather than hidden from view. A stencil buffer is used to mask pixels in an image, to produce special effects, including compositing; decaling; dissolves, fades, and swipes; outlines and silhouettes; and two-sided stencil.

In this section

Topic Description

Depth buffers

A depth buffer, or z-buffer, stores depth information to control which areas of polygons are rendered rather than hidden from view.

Stencil buffers

A stencil buffer is used to mask pixels in an image, to produce special effects. The mask controls whether the pixel is drawn or not. These special effects include compositing; decaling; dissolves, fades, and swipes; outlines and silhouettes; and two-sided stencil.

 

Direct3D Graphics Learning Guide