shiny
0.4
a shader and material management library for OGRE
|
Allows you to be notified when a certain material was just created. Useful for changing material properties that you can't do in a .mat script (for example a series of animated textures)
When receiving the event, you can get the platform material by calling m->getMaterial() and casting that to the platform specific material (e.g. for Ogre, sh::OgreMaterial)
More...
#include <Factory.hpp>
Public Member Functions | |
virtual void | materialCreated (MaterialInstance *m, const std::string &configuration, unsigned short lodIndex)=0 |
Allows you to be notified when a certain material was just created. Useful for changing material properties that you can't do in a .mat script (for example a series of animated textures)
When receiving the event, you can get the platform material by calling m->getMaterial() and casting that to the platform specific material (e.g. for Ogre, sh::OgreMaterial)