SO3Engine
|
#include <SO3DeferredShading.h>
Classes | |
struct | GBufferFilters |
Public Types | |
enum | DeferredShadingMode { SO3_DEFERRED_SHOWLIT = 0 , SO3_DEFERRED_SHOWCOLOUR = 1 , SO3_DEFERRED_SHOWNORMALS = 2 , SO3_DEFERRED_SHOWDEPTH = 3 , SO3_DEFERRED_SHOWSPECULAR = 4 , SO3_DEFERRED_SHOWEMISSIVE = 5 , SO3_DEFERRED_SHOWVELOCITY = 6 , SO3_DEFERRED_SHOWMATERIALID = 7 , SO3_DEFERRED_COUNT = 8 } |
enum | DeferredShadingAntiAliasingMode { SO3_DEFERRED_AA_NONE = 0 , SO3_DEFERRED_SSAA = 1 , SO3_DEFERRED_NFAA = 2 , SO3_DEFERRED_AA_COUNT = 2 } |
Public Member Functions | |
SDeferredShading () | |
~SDeferredShading () | |
void | RegisterViewport (SViewPort *targetViewport) |
void | UnregisterViewport (SViewPort *existingViewport) |
void | UnregisterAllViewports () |
void | SetSSAO (SViewPort *existingViewport, bool ssao) |
void | SetAntiAliasing (SViewPort *existingViewport, DeferredShadingAntiAliasingMode newMode) |
void | SetMode (DeferredShadingMode mode) |
DeferredShadingMode | GetMode () const |
SGBuffer * | GetGBuffer () |
SGBufferMaterialGenerator * | GetGBufferMaterialGenerator () |
Static Public Member Functions | |
static SDeferredShading & | getSingleton () |
static SDeferredShading * | getSingletonPtr () |
Static Public Attributes | |
static const Ogre::uint8 | PRE_GBUFFER_RENDER_QUEUE = Ogre::RENDER_QUEUE_2 |
static const Ogre::uint8 | POST_GBUFFER_RENDER_QUEUE = Ogre::RENDER_QUEUE_8 |
Protected Types | |
typedef Ogre::CompositorInstance * | GBufferCompositors[SO3_DEFERRED_COUNT] |
typedef Ogre::CompositorInstance * | AntiAliasingCompositors[SO3_DEFERRED_AA_COUNT] |
typedef std::map< SViewPort *, GBufferFilters * > | OgreViewportList |
Protected Attributes | |
OgreViewportList | ogreViewportList |
DeferredShadingMode | currentMode |
System to manage Deferred Shading for a camera/render target. Inspired from ogre's deferred shading demo framework
Definition at line 58 of file SO3DeferredShading.h.
|
protected |
Definition at line 86 of file SO3DeferredShading.h.
|
protected |
Definition at line 85 of file SO3DeferredShading.h.
|
protected |
Definition at line 95 of file SO3DeferredShading.h.
Enumerator | |
---|---|
SO3_DEFERRED_AA_NONE | |
SO3_DEFERRED_SSAA | |
SO3_DEFERRED_NFAA | |
SO3_DEFERRED_AA_COUNT |
Definition at line 75 of file SO3DeferredShading.h.
Definition at line 61 of file SO3DeferredShading.h.
SO3::SDeferredShading::SDeferredShading | ( | ) |
ctor
Definition at line 45 of file SO3DeferredShading.cpp.
SO3::SDeferredShading::~SDeferredShading | ( | ) |
dtor
Definition at line 78 of file SO3DeferredShading.cpp.
SGBuffer * SO3::SDeferredShading::GetGBuffer | ( | ) |
Definition at line 356 of file SO3DeferredShading.cpp.
SGBufferMaterialGenerator * SO3::SDeferredShading::GetGBufferMaterialGenerator | ( | ) |
Definition at line 361 of file SO3DeferredShading.cpp.
SDeferredShading::DeferredShadingMode SO3::SDeferredShading::GetMode | ( | ) | const |
Definition at line 351 of file SO3DeferredShading.cpp.
|
static |
Definition at line 144 of file SO3DeferredShading.cpp.
|
static |
Definition at line 139 of file SO3DeferredShading.cpp.
void SO3::SDeferredShading::RegisterViewport | ( | SViewPort * | targetViewport | ) |
Definition at line 150 of file SO3DeferredShading.cpp.
void SO3::SDeferredShading::SetAntiAliasing | ( | SViewPort * | existingViewport, |
SDeferredShading::DeferredShadingAntiAliasingMode | newMode | ||
) |
Definition at line 332 of file SO3DeferredShading.cpp.
void SO3::SDeferredShading::SetMode | ( | DeferredShadingMode | mode | ) |
Set rendering mode (one of DSMode)
Definition at line 286 of file SO3DeferredShading.cpp.
void SO3::SDeferredShading::SetSSAO | ( | SViewPort * | existingViewport, |
bool | ssao | ||
) |
Definition at line 320 of file SO3DeferredShading.cpp.
void SO3::SDeferredShading::UnregisterAllViewports | ( | ) |
Definition at line 274 of file SO3DeferredShading.cpp.
void SO3::SDeferredShading::UnregisterViewport | ( | SViewPort * | existingViewport | ) |
Definition at line 241 of file SO3DeferredShading.cpp.
|
protected |
Definition at line 97 of file SO3DeferredShading.h.
|
protected |
Definition at line 96 of file SO3DeferredShading.h.
|
static |
The first render queue that does not get rendered into the GBuffer place transparent (or other non gbuffer) objects after this one
Definition at line 154 of file SO3DeferredShading.h.
|
static |
The first render queue that does get rendered into the GBuffer place objects (like skies) that should be before gbuffer before this one.
Definition at line 148 of file SO3DeferredShading.h.