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 |
Detailed Description
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.
Member Typedef Documentation
◆ AntiAliasingCompositors
|
protected |
Definition at line 86 of file SO3DeferredShading.h.
◆ GBufferCompositors
|
protected |
Definition at line 85 of file SO3DeferredShading.h.
◆ OgreViewportList
|
protected |
Definition at line 95 of file SO3DeferredShading.h.
Member Enumeration Documentation
◆ DeferredShadingAntiAliasingMode
Enumerator | |
---|---|
SO3_DEFERRED_AA_NONE | |
SO3_DEFERRED_SSAA | |
SO3_DEFERRED_NFAA | |
SO3_DEFERRED_AA_COUNT |
Definition at line 75 of file SO3DeferredShading.h.
◆ DeferredShadingMode
Definition at line 61 of file SO3DeferredShading.h.
Constructor & Destructor Documentation
◆ SDeferredShading()
SO3::SDeferredShading::SDeferredShading | ( | ) |
ctor
Definition at line 45 of file SO3DeferredShading.cpp.
◆ ~SDeferredShading()
SO3::SDeferredShading::~SDeferredShading | ( | ) |
dtor
Definition at line 78 of file SO3DeferredShading.cpp.
Member Function Documentation
◆ GetGBuffer()
SGBuffer * SO3::SDeferredShading::GetGBuffer | ( | ) |
Definition at line 356 of file SO3DeferredShading.cpp.
◆ GetGBufferMaterialGenerator()
SGBufferMaterialGenerator * SO3::SDeferredShading::GetGBufferMaterialGenerator | ( | ) |
Definition at line 361 of file SO3DeferredShading.cpp.
◆ GetMode()
SDeferredShading::DeferredShadingMode SO3::SDeferredShading::GetMode | ( | ) | const |
Definition at line 351 of file SO3DeferredShading.cpp.
◆ getSingleton()
|
static |
Definition at line 144 of file SO3DeferredShading.cpp.
◆ getSingletonPtr()
|
static |
Definition at line 139 of file SO3DeferredShading.cpp.
◆ RegisterViewport()
void SO3::SDeferredShading::RegisterViewport | ( | SViewPort * | targetViewport | ) |
Definition at line 150 of file SO3DeferredShading.cpp.
◆ SetAntiAliasing()
void SO3::SDeferredShading::SetAntiAliasing | ( | SViewPort * | existingViewport, |
SDeferredShading::DeferredShadingAntiAliasingMode | newMode | ||
) |
Definition at line 332 of file SO3DeferredShading.cpp.
◆ SetMode()
void SO3::SDeferredShading::SetMode | ( | DeferredShadingMode | mode | ) |
Set rendering mode (one of DSMode)
Definition at line 286 of file SO3DeferredShading.cpp.
◆ SetSSAO()
void SO3::SDeferredShading::SetSSAO | ( | SViewPort * | existingViewport, |
bool | ssao | ||
) |
Definition at line 320 of file SO3DeferredShading.cpp.
◆ UnregisterAllViewports()
void SO3::SDeferredShading::UnregisterAllViewports | ( | ) |
Definition at line 274 of file SO3DeferredShading.cpp.
◆ UnregisterViewport()
void SO3::SDeferredShading::UnregisterViewport | ( | SViewPort * | existingViewport | ) |
Definition at line 241 of file SO3DeferredShading.cpp.
Member Data Documentation
◆ currentMode
|
protected |
Definition at line 97 of file SO3DeferredShading.h.
◆ ogreViewportList
|
protected |
Definition at line 96 of file SO3DeferredShading.h.
◆ POST_GBUFFER_RENDER_QUEUE
|
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.
◆ PRE_GBUFFER_RENDER_QUEUE
|
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.
The documentation for this class was generated from the following files:
- include/SO3Renderer/DeferredShading/SO3DeferredShading.h
- src/SO3Renderer/DeferredShading/SO3DeferredShading.cpp
Generated by 1.9.8