Creating blur with an alpha channel, incorrect inclusion of black

Posted by edA-qa mort-ora-y on Game Development See other posts from Game Development or by edA-qa mort-ora-y
Published on 2014-05-28T07:57:03Z Indexed on 2014/05/28 16:01 UTC
Read the original article Hit count: 376

Filed under:
|

I'm trying to do a blur on a texture with an alpha channel. Using a typical approach (two-pass, gaussian weighting) I end up with a very dark blur. The reason is because the blurring does not properly account for the alpha channel. It happily blurs in the invisible part of the image, whcih happens to be black, and thus results in a very dark blur.

Is there a technique to blur that properly accounts for the alpha channel?

© Game Development or respective owner

Related posts about algorithm

Related posts about glsl