Class OESSampleShading

java.lang.Object
org.lwjgl.opengles.OESSampleShading

public class OESSampleShading extends Object
Native bindings to the OES_sample_shading extension.

In standard multisample rendering, an implementation is allowed to assign the same sets of fragment shader input values to each sample. This can cause aliasing where the fragment shader input values 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 fragment-shading operations are executed independently on each sample.

Requires GLES 3.0.

  • Field Details

    • GL_SAMPLE_SHADING_OES

      public static final int GL_SAMPLE_SHADING_OES
      Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.
      See Also:
    • GL_MIN_SAMPLE_SHADING_VALUE_OES

      public static final int GL_MIN_SAMPLE_SHADING_VALUE_OES
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetInteger64v, and GetFloatv.
      See Also:
  • Method Details

    • glMinSampleShadingOES

      public static void glMinSampleShadingOES(float value)