SO3Engine
|
#include <SO3SsaoHandler.h>
Classes | |
struct | SsaoTechniqueParameter |
Public Types | |
enum | SsaoTechnique { SO3_SSAO_TECHNIQUE_NONE = -1 , SO3_SSAO_TECHNIQUE_CRYTEK = 0 , SO3_SSAO_TECHNIQUE_HEMISPHERIC = 1 , SO3_SSAO_TECHNIQUE_CREASE_SHADING = 2 , SO3_SSAO_TECHNIQUE_MAX = 3 } |
enum | SsaoFilter { SO3_SSAO_FILTER_NONE , SO3_SSAO_FILTER_BOX , SO3_SSAO_FILTER_BOX_SMART , SO3_SSAO_FILTER_MAX } |
enum | SsaoDebugMode { SO3_SSAO_DEBUG_MODE_NONE , SO3_SSAO_DEBUG_MODE_DEPTH , SO3_SSAO_DEBUG_MODE_NORMAL , SO3_SSAO_DEBUG_MODE_POSITION , SO3_SSAO_DEBUG_MODE_SSAO_ONLY , SO3_SSAO_DEBUG_MODE_MAX } |
typedef std::pair< float, float > | SsaoTechniqueParameterRange |
typedef std::map< std::string, SsaoTechniqueParameter > | SsaoTechniqueParameters |
Public Member Functions | |
SSsaoHandler (SViewPort *targetViewportInstance) | |
~SSsaoHandler () | |
bool | GetEnable () |
void | SetEnable (bool enable) |
SsaoTechnique | GetTechnique () |
void | SetTechnique (SsaoTechnique newTechnique) |
SsaoFilter | GetFilter () |
void | SetFilter (const SsaoFilter &newFilter) |
SsaoDebugMode | GetDebugMode () |
void | SetDebugMode (const SsaoDebugMode &newDebugMode) |
float | GetTechniqueParameterValue (const SsaoTechnique &technique, const std::string ¶meterName) const |
void | SetTechniqueParameterValue (const SsaoTechnique &technique, const std::string ¶meterName, const float ¶meterValue) |
SsaoTechniqueParameters | GetTechniqueParameters (const SsaoTechnique &technique) const |
void | SetTechniqueParameters (const SsaoTechnique &technique, const SsaoTechniqueParameters ¶meters) |
virtual Ogre::Technique * | handleSchemeNotFound (unsigned short schemeIndex, const Ogre::String &schemeName, Ogre::Material *originalMaterial, unsigned short lodIndex, const Ogre::Renderable *rend) |
Static Public Member Functions | |
static void | Reset () |
Handler to manage SSAO rendering with no artefacts on transparent objects.
Definition at line 39 of file SO3SsaoHandler.h.
typedef std::pair<float, float> SO3::SSsaoHandler::SsaoTechniqueParameterRange |
Definition at line 66 of file SO3SsaoHandler.h.
typedef std::map<std::string, SsaoTechniqueParameter> SO3::SSsaoHandler::SsaoTechniqueParameters |
Definition at line 78 of file SO3SsaoHandler.h.
Enumerator | |
---|---|
SO3_SSAO_DEBUG_MODE_NONE | |
SO3_SSAO_DEBUG_MODE_DEPTH | |
SO3_SSAO_DEBUG_MODE_NORMAL | |
SO3_SSAO_DEBUG_MODE_POSITION | |
SO3_SSAO_DEBUG_MODE_SSAO_ONLY | |
SO3_SSAO_DEBUG_MODE_MAX |
Definition at line 57 of file SO3SsaoHandler.h.
Enumerator | |
---|---|
SO3_SSAO_FILTER_NONE | |
SO3_SSAO_FILTER_BOX | |
SO3_SSAO_FILTER_BOX_SMART | |
SO3_SSAO_FILTER_MAX |
Definition at line 50 of file SO3SsaoHandler.h.
Enumerator | |
---|---|
SO3_SSAO_TECHNIQUE_NONE | |
SO3_SSAO_TECHNIQUE_CRYTEK | |
SO3_SSAO_TECHNIQUE_HEMISPHERIC | |
SO3_SSAO_TECHNIQUE_CREASE_SHADING | |
SO3_SSAO_TECHNIQUE_MAX |
Definition at line 42 of file SO3SsaoHandler.h.
SSsaoHandler::SSsaoHandler | ( | SViewPort * | targetViewportInstance | ) |
Constructor.
Definition at line 29 of file SO3SsaoHandler.cpp.
SSsaoHandler::~SSsaoHandler | ( | ) |
Destructor.
Definition at line 104 of file SO3SsaoHandler.cpp.
SSsaoHandler::SsaoDebugMode SSsaoHandler::GetDebugMode | ( | ) |
Definition at line 418 of file SO3SsaoHandler.cpp.
bool SSsaoHandler::GetEnable | ( | ) |
Definition at line 155 of file SO3SsaoHandler.cpp.
SSsaoHandler::SsaoFilter SSsaoHandler::GetFilter | ( | ) |
Definition at line 347 of file SO3SsaoHandler.cpp.
SSsaoHandler::SsaoTechnique SSsaoHandler::GetTechnique | ( | ) |
Definition at line 242 of file SO3SsaoHandler.cpp.
SSsaoHandler::SsaoTechniqueParameters SSsaoHandler::GetTechniqueParameters | ( | const SsaoTechnique & | technique | ) | const |
Definition at line 2410 of file SO3SsaoHandler.cpp.
float SSsaoHandler::GetTechniqueParameterValue | ( | const SsaoTechnique & | technique, |
const std::string & | parameterName | ||
) | const |
Definition at line 2324 of file SO3SsaoHandler.cpp.
|
virtual |
This scheme handler is used to generate the depth texture.
Definition at line 579 of file SO3SsaoHandler.cpp.
|
static |
Definition at line 19 of file SO3SsaoHandler.cpp.
void SSsaoHandler::SetDebugMode | ( | const SsaoDebugMode & | newDebugMode | ) |
Definition at line 423 of file SO3SsaoHandler.cpp.
void SSsaoHandler::SetEnable | ( | bool | enable | ) |
Definition at line 160 of file SO3SsaoHandler.cpp.
void SSsaoHandler::SetFilter | ( | const SsaoFilter & | newFilter | ) |
Definition at line 352 of file SO3SsaoHandler.cpp.
void SSsaoHandler::SetTechnique | ( | SsaoTechnique | newTechnique | ) |
Definition at line 247 of file SO3SsaoHandler.cpp.
void SSsaoHandler::SetTechniqueParameters | ( | const SsaoTechnique & | technique, |
const SsaoTechniqueParameters & | parameters | ||
) |
Definition at line 2423 of file SO3SsaoHandler.cpp.
void SSsaoHandler::SetTechniqueParameterValue | ( | const SsaoTechnique & | technique, |
const std::string & | parameterName, | ||
const float & | parameterValue | ||
) |
Definition at line 2347 of file SO3SsaoHandler.cpp.