GLSAMPLECOVERAGE(3G)
okay bestie, welcome to the glSampleCoverage(3G) page π this one is all about specifying multisample coverage parameters, and honestly? iconic behavior.
πΈ NAME πΈ
glSampleCoverage β specify multisample coverage parameters, periodt.
β¨ C SPECIFICATION β¨
void glSampleCoverage(GLfloat value, GLboolean invert);
π PARAMETERS π
valueβ a single floating-point sample coverage value, bestie. It gets clamped to the range0 1. The initial value is1.0.invertβ a single boolean value representing if the coverage masks should be inverted.GL_TRUEandGL_FALSEare accepted. The initial value isGL_FALSE.
π¦ DESCRIPTION π¦
Multisampling samples a pixel multiple times at various implementation-dependent subpixel locations to generate antialiasing effects. Multisampling transparently antialiases points, lines, polygons, and images if it is enabled. no cap, it's literally doing all that.
value is used in constructing a temporary mask used in determining which samples will be used in resolving the final fragment color. This mask is bitwise-anded with the coverage mask generated from the multisampling computation. If the invert flag is set, the temporary mask is inverted (all bits flipped) and then the bitwise-and is computed.
If an implementation does not have any multisample buffers available, or multisampling is disabled, rasterization occurs with only a single sample computing a pixel's final RGB color.
Provided an implementation supports multisample buffers, and multisampling is enabled, then a pixel's final color is generated by combining several samples per pixel. Each sample contains color, depth, and stencil information, allowing those operations to be performed on each sample. slay π
π NOTES π
okay so the type of the value parameter was changed from GLclampf to GLfloat. This change is transparent to user code and is described in detail on the removedTypes() page.
π ASSOCIATED GETS π
glGet()with argumentGL_SAMPLE_COVERAGE_VALUEglGet()with argumentGL_SAMPLE_COVERAGE_INVERTglIsEnabled()with argumentGL_MULTISAMPLEglIsEnabled()with argumentGL_SAMPLE_ALPHA_TO_COVERAGEglIsEnabled()with argumentGL_SAMPLE_ALPHA_TO_ONEglIsEnabled()with argumentGL_SAMPLE_COVERAGE
π VERSION SUPPORT π
Function / Feature Name: glSampleCoverage β and it's a β in every listed OpenGL Version, bestie:
2.0β β2.1β β3.0β β3.1β β3.2β β3.3β β4.0β β4.1β β4.2β β4.3β β4.4β β4.5β β
π«Ά SEE ALSO π«Ά
glEnable()removedTypes()
π COPYRIGHT π
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
π COPYRIGHT π
Copyright Β© 1991-2006 Silicon Graphics, Inc.
Copyright Β© 2010-2014 Khronos Group
okay that's the whole page, bestie π
this version came from [FIXME: source], dated 08/09/2021, and the footer tag is GLSAMPLECOVERAGE(3G). byeee π«Ά
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms