17 #ifndef _GBUFFERSCHEMEHANDLER_HH_
18 #define _GBUFFERSCHEMEHANDLER_HH_
19 #include <OgreMaterialManager.h>
39 public Ogre::MaterialManager::Listener
42 : type(_type), materialGenerator(_type) {}
44 public:
virtual Ogre::Technique* handleSchemeNotFound(
45 uint16_t _schemeIndex,
46 const Ogre::String &_schemeName,
47 Ogre::Material *_originalMaterial,
49 const Ogre::Renderable *_rend);
57 isSkinned(false), hasDiffuseColor(true)
72 uint16_t _lodIndex,
const Ogre::Renderable *_rend);
80 protected:
void FillPass(Ogre::Pass *_gBufferPass,
81 Ogre::Pass *_originalPass,
86 protected:
bool CheckNormalMap(Ogre::TextureUnitState *_tus,
bool isDeferred
Definition: GBufferSchemeHandler.hh:60
GBufferMaterialGenerator::GBufferType type
Definition: GBufferSchemeHandler.hh:89
Class for generating materials for objects to render themselves to the GBuffer.
Definition: GBufferMaterialGenerator.hh:33
std::vector< Ogre::TextureUnitState * > regularTextures
Definition: GBufferSchemeHandler.hh:61
static const std::string normal_map_pattern
Definition: GBufferSchemeHandler.hh:96
Ogre::TextureUnitState * normalMap
Definition: GBufferSchemeHandler.hh:62
GBufferSchemeHandler(GBufferMaterialGenerator::GBufferType _type)
Definition: GBufferSchemeHandler.hh:41
Class for handling materials who did not specify techniques for rendering themselves into the GBuffer...
Definition: GBufferSchemeHandler.hh:38
A structure for containing the properties of a material, relevant to GBuffer rendering.
Definition: GBufferSchemeHandler.hh:54
bool isSkinned
Definition: GBufferSchemeHandler.hh:63
GBufferType
The types of g buffers.
Definition: GBufferMaterialGenerator.hh:36
GBufferMaterialGenerator materialGenerator
The material generator.
Definition: GBufferSchemeHandler.hh:92
bool hasDiffuseColor
Definition: GBufferSchemeHandler.hh:64
PassProperties()
Definition: GBufferSchemeHandler.hh:56
#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