mirror of
https://github.com/minetest/minetest.git
synced 2024-11-09 17:23:45 +01:00
Make bumpmapping compatible with irrlicht 1.8
This commit is contained in:
parent
251e3e01c7
commit
c6cb97e693
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user