OpenGL Distilled
A.1. Multisample
Multisample, included in OpenGL version 1.3, produces full antialiasing by rasterizing primitives with multiple samples per displayed pixel. Each sample consists of full color, depth, and stencil information, so multisample is order independent (as opposed to traditional antialiasing, which uses alpha and blending). Just as depth test requires you to allocate a depth buffer for your window, multisample requires you to allocate a sample buffer for your window. To use the multisample feature:
Once enabled, all primitives will produce antialiased results. For more information on multisample, see Chapter 6, "Blending, Antialiasing, Fog, and Polygon Offset," of OpenGL® Programming Guide. |
Категории