Anders Riggelsen

Anders Riggelsen

Visual glBlendFunc + glBlendEquation Tool

Source: (foreground)

Destination: (background)

Blend equation:

result = ...

Display:

Use premultiplied alpha

  • Image presets
  • Image URLs
  • Blending color

Foreground:

Background:
(display image size is 400x400)
Hue:
Alpha value: 1.0

Use this tool to quickly visualize how the different blending modes work in OpenGL.

Graphics from www.interfacelift.com:

Splash by Richard Mohler
Bisti Badlands by Ben DiAnna
Lazy Days II by boss019
Flamingos by Jestrella
Treetops - Michaux State Forest by Se7en
The Road To Bonneville by Chris F
Clouds Over Water by DerekProspero
Thanks to Alex Huang for finding a bug in in the math for GL_FUNC_REVERSE_SUBTRACT.