March 2013
Intermediate to advanced
984 pages
26h 18m
English
If you can’t modify a fragment shader to use the sample keyword (e.g., you’re creating a library that accepts shaders created by another programmer), you can have OpenGL do sample shading by passing GL_SAMPLE_SHADING to glEnable(). This will cause unmodified fragment shader in variables to be interpolated to sample locations automatically.
In order to control the number of samples that receive unique sample-based interpolated values to be evaluated in a fragment shader, you can specify the minimum-sample-shading ratio with glMinSampleShading().