|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
|
|
|
|
|
#include <OgrePass.h>
|
|
|
|
|
|
|
|
|
|
#include <OgreStringConverter.h>
|
|
|
|
|
|
|
|
|
|
namespace sh
|
|
|
|
|
{
|
|
|
|
|
void OgreMaterialSerializer::reset()
|
|
|
|
@ -44,6 +46,13 @@ namespace sh
|
|
|
|
|
|
|
|
|
|
bool OgreMaterialSerializer::setTextureUnitProperty (const std::string& param, std::string value, Ogre::TextureUnitState* t)
|
|
|
|
|
{
|
|
|
|
|
// quick access to automip setting, without having to use 'texture' which doesn't like spaces in filenames
|
|
|
|
|
if (param == "num_mipmaps")
|
|
|
|
|
{
|
|
|
|
|
t->setNumMipmaps(Ogre::StringConverter::parseInt(value));
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
reset();
|
|
|
|
|
|
|
|
|
|
mScriptContext.section = Ogre::MSS_TEXTUREUNIT;
|
|
|
|
|