Make bumpmapping compatible with irrlicht 1.8

This commit is contained in:
Esteban I. Ruiz Moreno 2013-07-29 23:18:11 -03:00 committed by PilzAdam
parent 251e3e01c7
commit c6cb97e693
1 changed files with 5 additions and 0 deletions

View File

@ -807,7 +807,12 @@ public:
// Normal map texture layer
int layer = 1;
// before 1.8 there isn't a "integer interface", only float
#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
services->setPixelShaderConstant("normalTexture" , (irr::f32*)&layer, 1);
#else
services->setPixelShaderConstant("normalTexture" , (irr::s32*)&layer, 1);
#endif
}
};