Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBSampleShading

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the ARB_sample_shading extension.

In standard multisample rendering, an implementation is allowed to assign the same color and texture coordinate values to each sample, which then allows the optimization where the shader is only evaluated once and then distributed to the samples that have been determined to be covered by the primitive currently being rasterized. This can cause aliasing where the input color and texture coordinates are used to generate a result that doesn't antialias itself, for example with alpha-tested transparency.

This extension adds the ability to explicitly request that an implementation use a minimum number of unique set of fragment computation inputs when multisampling a pixel. Specifying such a requirement can reduce aliasing that results from evaluating the fragment computations too few times per pixel.

This extension adds new global state that controls the minimum number of samples for which attribute data is independently interpolated. When enabled, all operations that were traditionally executed per-fragment operate independently on each sample.

This also extends the shading language to allow control over the sample being processed. This includes built-in fragment input variables identifying the sample number and position being processed when executing fragment shaders per sample.

Requires OpenGL 2.0 and GLSL 1.30. Promoted to core in OpenGL 3.0.

Field Summary

Modifier and TypeField and Description
public static final int
GL_MIN_SAMPLE_SHADING_VALUE_ARB

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

public static final int
GL_SAMPLE_SHADING_ARB

Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glMinSampleShadingARB(float
the minimum sample shading fraction
value
)

Sets the minimum sample shading fraction.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_MIN_SAMPLE_SHADING_VALUE_ARBback to summary
public static final int GL_MIN_SAMPLE_SHADING_VALUE_ARB

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

GL_SAMPLE_SHADING_ARBback to summary
public static final int GL_SAMPLE_SHADING_ARB

Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Detail

ARBSampleShadingback to summary
protected ARBSampleShading()

Method Detail

glMinSampleShadingARBback to summary
public static native void glMinSampleShadingARB(float value)

Sets the minimum sample shading fraction. value is clamped to [0,1] when specified.

Parameters
value:float

the minimum sample shading fraction