Alpha to coverage support added

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Alpha to coverage support added

Post by sinbad »

So, since I had to look this stuff up anyway because of a recent thread, I decided to sneak in support for Alpha to Coverage before the Shoggoth deadline because it wasn't hard to do. You can now enable Alpha to Coverage on passes that are typically doing alpha rejection using the following directive:

Code: Select all

alpha_to_coverage on
A picture is worth a thousand words; the leaf on the left is without alpha to coverage, the one on the right is with alpha to coverage enabled. The MSAA setting is 8x.
Image

Pretty handy - alpha to coverage is officially a Dx10 feature, but there are hacks available for ATI and NVIDIA on Dx9, and there's a common extension in GL, so all rendersystems support this now.

Enjoy! :)
User avatar
ajs15822
OGRE Expert User
OGRE Expert User
Posts: 570
Joined: Mon Jan 02, 2006 2:05 am
Location: Texas
x 2

Post by ajs15822 »

Great! Glad to see this got in. :D
User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Post by Assaf Raman »

Nice.
Watch out for my OGRE related tweets here.
User avatar
SiENcE
Goblin
Posts: 231
Joined: Thu May 11, 2006 3:07 pm
Location: Berlin

Post by SiENcE »

Great :-).
User avatar
pyrokar
Gnoblar
Posts: 6
Joined: Thu Apr 19, 2007 6:16 pm

Post by pyrokar »

Nice! I couldn't even find this for Paint.NET.
It's great that Ogre will support it.