Package org.lwjgl.opengles
Class NVFragmentCoverageToColor
java.lang.Object
org.lwjgl.opengles.NVFragmentCoverageToColor
Native bindings to the NV_fragment_coverage_to_color extension.
This extension allows the fragment coverage value, represented as an integer bitfield, to be substituted for a color output being written to a single-component color buffer with integer components (e.g., R8UI). The capability provided by this extension is different from simply writing the gl_SampleMask fragment shader output in that the coverage value written to the framebuffer is taken after alpha test, stencil test, and depth test, as well as after the multisample fragment operations such as alpha-to-coverage.
This functionality may be useful for deferred rendering algorithms, where the second pass needs to know which samples belong to which original fragments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final int
Accepted by thecap
parameter of Enable, Disable, IsEnabled. -
Method Summary
-
Field Details
-
GL_FRAGMENT_COVERAGE_TO_COLOR_NV
public static final int GL_FRAGMENT_COVERAGE_TO_COLOR_NVAccepted by thecap
parameter of Enable, Disable, IsEnabled.- See Also:
-
GL_FRAGMENT_COVERAGE_COLOR_NV
public static final int GL_FRAGMENT_COVERAGE_COLOR_NVAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
-
Method Details
-
glFragmentCoverageColorNV
public static void glFragmentCoverageColorNV(int color)
-