03/18/2003
15-462 Graphics I
4
Blending in OpenGL
•
Enable blending
•
•
Set up source and destination factors
•
•
Source and destination choices
–
GL_ONE, GL_ZERO
–
GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
–
GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA
glEnable(GL_BLEND);
glBlendFund(source_factor, dest_factor);