Code: Select all
mMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_TEXTURE, Ogre::LBS_MANUAL,Ogre::ColourValue::White,Ogre::ColourValue(mColour,mColour,mColour) );
Code: Select all
mMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setAlphaOperation(Ogre::LBX_MODULATE, Ogre::LBS_TEXTURE, Ogre::LBS_MANUAL, mAlpha, 1 - mAlpha);
After a few blending operations, I have some issues with setColourOperationEx(...). Changing mColour has no effect at all. I spent hours trying to understand what was wrong and how to fix it with no luck.
Just to test I tried to use opengl rendersystem instead of d3d9. I was really surprised to see that everything was working fine exactly like I wanted!
Are opengl and d3d9 blending operations supposed to work exactly the same way in Ogre ? Are there any limitations ?
Thanks a lot