Class for handling materials who did not specify techniques for rendering themselves into the GBuffer. More...
#include <GBufferSchemeHandler.hh>
Classes | |
struct | PassProperties |
A structure for containing the properties of a material, relevant to GBuffer rendering. More... | |
Public Member Functions | |
GBufferSchemeHandler (GBufferMaterialGenerator::GBufferType _type) | |
virtual Ogre::Technique * | handleSchemeNotFound (uint16_t _schemeIndex, const Ogre::String &_schemeName, Ogre::Material *_originalMaterial, uint16_t _lodIndex, const Ogre::Renderable *_rend) |
Protected Member Functions | |
bool | CheckNormalMap (Ogre::TextureUnitState *_tus, PassProperties &_props) |
Check if a texture is a normal map, and fill property sheet accordingly. More... | |
void | FillPass (Ogre::Pass *_gBufferPass, Ogre::Pass *_originalPass, const PassProperties &_props) |
Fill a pass with the specific data from the pass it is based on. More... | |
MaterialGenerator::Perm | GetPermutation (const PassProperties &_props) |
Get the permutation of material flags that fit a certain property sheet. More... | |
PassProperties | InspectPass (Ogre::Pass *_pass, uint16_t _lodIndex, const Ogre::Renderable *_rend) |
Inspect a technique and return its relevant properties. More... | |
Protected Attributes | |
GBufferMaterialGenerator | materialGenerator |
The material generator. More... | |
GBufferMaterialGenerator::GBufferType | type |
Static Protected Attributes | |
static const std::string | normal_map_pattern |
Class for handling materials who did not specify techniques for rendering themselves into the GBuffer.
This class allows deferred shading to be used, without having to specify new techniques for all the objects in the scene.
|
inline |
|
protected |
Check if a texture is a normal map, and fill property sheet accordingly.
|
protected |
Fill a pass with the specific data from the pass it is based on.
|
protected |
Get the permutation of material flags that fit a certain property sheet.
|
virtual |
|
protected |
Inspect a technique and return its relevant properties.
|
protected |
The material generator.
|
staticprotected |
|
protected |