17 #ifndef _MERGESCHEMEHANDLER_HH_
18 #define _MERGESCHEMEHANDLER_HH_
20 #include <OgreMaterialManager.h>
34 public Ogre::MaterialManager::Listener
40 this->materialGenerator =
42 this->techName =
"InferredLighting";
46 this->materialGenerator =
48 this->techName =
"DeferredLighting";
53 public:
virtual Ogre::Technique *handleSchemeNotFound(
54 uint16_t _schemeIndex,
55 const Ogre::String &_schemeName,
56 Ogre::Material *_originalMaterial,
58 const Ogre::Renderable* rend);
71 hasDiffuseColor(true) {}
82 uint16_t _lodIndex,
const Ogre::Renderable *_rend);
90 protected:
void FillPass(Ogre::Pass *_gBufferPass,
95 protected:
bool CheckNormalMap(Ogre::TextureUnitState *_tus,
PassProperties()
Definition: MergeSchemeHandler.hh:70
Ogre::TextureUnitState * normalMap
Definition: MergeSchemeHandler.hh:74
A structure for containing the properties of a material.
Definition: MergeSchemeHandler.hh:68
Ogre::vector< Ogre::TextureUnitState * >::type regularTextures
Definition: MergeSchemeHandler.hh:77
bool useDSF
Definition: MergeSchemeHandler.hh:63
Class for handling materials who did not specify techniques for the merging step of deferred/inferred...
Definition: MergeSchemeHandler.hh:33
Class for generating materials for objects to render themselves in the merging step of deferred light...
Definition: MergeMaterialGenerator.hh:38
bool isDeferred
Definition: MergeSchemeHandler.hh:73
static const std::string normal_map_pattern
The string that will be checked in textures to determine whether they are normal maps.
Definition: MergeSchemeHandler.hh:62
MergeMaterialGenerator * materialGenerator
Definition: MergeSchemeHandler.hh:65
Ogre::String techName
Definition: MergeSchemeHandler.hh:64
bool isSkinned
Definition: MergeSchemeHandler.hh:75
MergeSchemeHandler(bool _useDSF)
Definition: MergeSchemeHandler.hh:36
bool hasDiffuseColor
Definition: MergeSchemeHandler.hh:76
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
uint32_t Perm
Bitfield used to signify a material permutations.
Definition: MaterialGenerator.hh:42