|
@@ -226,6 +226,8 @@ slop::SlopSelection slop::GLSlopSelect( slop::SlopOptions* options, bool* cancel
|
226
|
226
|
|
227
|
227
|
int i;
|
228
|
228
|
// We have our clean buffer, now to slather it with some juicy shader chains.
|
|
229
|
+ glEnable( GL_BLEND );
|
|
230
|
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
229
|
231
|
for (i=0;i<=(int)shaders.size()-2;i+=2) {
|
230
|
232
|
pingpong->bind();
|
231
|
233
|
glClearColor (0.0, 0.0, 0.0, 0.0);
|
|
@@ -249,6 +251,7 @@ slop::SlopSelection slop::GLSlopSelect( slop::SlopOptions* options, bool* cancel
|
249
|
251
|
window->framebuffer->draw(slop::mouse->getMousePos(), elapsed.count()/1000.f, glm::vec4( options->r, options->g, options->b, options->a ) );
|
250
|
252
|
pingpong->unbind();
|
251
|
253
|
}
|
|
254
|
+ glDisable( GL_BLEND );
|
252
|
255
|
if ( i%2 != 0 ) {
|
253
|
256
|
window->framebuffer->draw(slop::mouse->getMousePos(), elapsed.count()/1000.f, glm::vec4( options->r, options->g, options->b, options->a ) );
|
254
|
257
|
} else {
|