logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glMinSampleShading - specifies minimum rate at which sample shaing takes place

Associated Gets

glGet() with argument GL_MIN_SAMPLE_SHADING.

       glGet() with argument GL_SAMPLES.

C Specification

voidglMinSampleShading(GLfloatvalue);

Description

glMinSampleShading specifies the rate at which samples are shaded within a covered pixel. Sample-rate
       shading is enabled by calling glEnable() with the parameter GL_SAMPLE_SHADING. If GL_MULTISAMPLE or
       GL_SAMPLE_SHADING is disabled, sample shading has no effect. Otherwise, an implementation must provide at
       least as many unique color values for each covered fragment as specified by value times samples where
       samples is the value of GL_SAMPLES for the current framebuffer. At least 1 sample for each covered
       fragment is generated.

       A value of 1.0 indicates that each sample in the framebuffer should be indpendently shaded. A value of
       0.0 effectively allows the GL to ignore sample rate shading. Any value between 0.0 and 1.0 allows the GL
       to shade only a subset of the total samples within each covered fragment. Which samples are shaded and
       the algorithm used to select that subset of the fragment's samples is implementation dependent.

Errors

       None.

Name

       glMinSampleShading - specifies minimum rate at which sample shaing takes place

Notes

       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.

Parameters

value
           Specifies the rate at which samples are shaded within each covered pixel.

See Also

removedTypes()

Version Support

       ┌────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                    │                OpenGLVersion                                         │
       ├────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                  │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature            │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name               │     │     │     │     │     │     │     │     │     │     │     │     │
       ├────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glMinSampleShading │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also