Skip to content
Snippets Groups Projects
Commit c6cb97e6 authored by Esteban I. Ruiz Moreno's avatar Esteban I. Ruiz Moreno Committed by PilzAdam
Browse files

Make bumpmapping compatible with irrlicht 1.8

parent 251e3e01
No related branches found
No related tags found
No related merge requests found
......@@ -807,7 +807,12 @@ class GameGlobalShaderConstantSetter : public IShaderConstantSetter
// 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
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment