OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
Describes the global blending factors for combining subsequent renders with the existing frame contents. More...
#include <OgreBlendMode.h>
Public Member Functions | |
ColourBlendState () | |
bool | blendingEnabled () const |
can we simply overwrite the existing pixels or do we have to blend More... | |
Public Attributes | |
Write Mask | |
Whether writing is enabled for each of the 4 colour channels | |
bool | writeR: 1 |
bool | writeG: 1 |
bool | writeB: 1 |
bool | writeA: 1 |
Blending factors | |
used to weight the render colour components and the frame colour components | |
SceneBlendFactor | sourceFactor |
SceneBlendFactor | destFactor |
SceneBlendFactor | sourceFactorAlpha |
SceneBlendFactor | destFactorAlpha |
Blending operations | |
The blend operation mode for combining colour values | |
SceneBlendOperation | operation |
SceneBlendOperation | alphaOperation |
Describes the global blending factors for combining subsequent renders with the existing frame contents.
By default the operation is Ogre::SBO_ADD, which creates this equation
$$final = (passOutput * sourceFactor) + (frameBuffer * destFactor)$$
Each of the factors is specified as one of Ogre::SceneBlendFactor.
By setting a different Ogre::SceneBlendOperation you can achieve a different effect.
|
inline |
|
inline |
can we simply overwrite the existing pixels or do we have to blend
References Ogre::SBF_ONE, and Ogre::SBF_ZERO.
bool Ogre::ColourBlendState::writeR |
bool Ogre::ColourBlendState::writeG |
bool Ogre::ColourBlendState::writeB |
bool Ogre::ColourBlendState::writeA |
SceneBlendFactor Ogre::ColourBlendState::sourceFactor |
SceneBlendFactor Ogre::ColourBlendState::destFactor |
SceneBlendFactor Ogre::ColourBlendState::sourceFactorAlpha |
SceneBlendFactor Ogre::ColourBlendState::destFactorAlpha |
SceneBlendOperation Ogre::ColourBlendState::operation |
SceneBlendOperation Ogre::ColourBlendState::alphaOperation |