Difference between revisions of "Logical Operation"

From OpenGL.org
Jump to: navigation, search
(stub for logic ops.)
 
(Pipeline page link.)
Line 1: Line 1:
 +
{{pipeline float}}
 
A '''Logical Operation''' is a per-sample operation applied between the fragment's color values and color values in the corresponding sample in the framebuffer. They are performed independently for the RGBA components of the colors, and they only work for framebuffer attachments that are integers (normalized or not). And even then, they do not work for SRGB [[Image Format]]s if {{enum|GL_FRAMEBUFFER_SRGB}} is active.
 
A '''Logical Operation''' is a per-sample operation applied between the fragment's color values and color values in the corresponding sample in the framebuffer. They are performed independently for the RGBA components of the colors, and they only work for framebuffer attachments that are integers (normalized or not). And even then, they do not work for SRGB [[Image Format]]s if {{enum|GL_FRAMEBUFFER_SRGB}} is active.
  

Revision as of 04:50, 4 October 2012

A Logical Operation is a per-sample operation applied between the fragment's color values and color values in the corresponding sample in the framebuffer. They are performed independently for the RGBA components of the colors, and they only work for framebuffer attachments that are integers (normalized or not). And even then, they do not work for SRGB Image Formats if GL_FRAMEBUFFER_SRGB is active.

Enabling logical operations automatically turns off Blending.