Alpha Compositing
Implement Using Alpha Blending
Draw first image
Draw matte to alpha buffer
Draw second image, modulating by matte
glBlendFunc(GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA)
Previous slide
Next slide
Back to first slide
View graphic version