diff options
author | Esteban I. Ruiz Moreno <exio4.com@gmail.com> | 2013-07-29 23:18:11 -0300 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-07-31 19:35:28 +0200 |
commit | c6cb97e693722aee47aef03e4ea0788037a6a633 (patch) | |
tree | 484054339f51fcb817fc6963a66b5e14ea1c3fe7 | |
parent | 251e3e01c7350d94ea8dec0857e834d1ed84ac3f (diff) | |
download | minetest-c6cb97e693722aee47aef03e4ea0788037a6a633.tar.gz minetest-c6cb97e693722aee47aef03e4ea0788037a6a633.tar.bz2 minetest-c6cb97e693722aee47aef03e4ea0788037a6a633.zip |
Make bumpmapping compatible with irrlicht 1.8
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 0c7d15d0c..4f2d6650d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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 } }; |