We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251e3e0 commit c6cb97eCopy full SHA for c6cb97e
src/game.cpp
@@ -807,7 +807,12 @@ class GameGlobalShaderConstantSetter : public IShaderConstantSetter
807
808
// Normal map texture layer
809
int layer = 1;
810
+ // before 1.8 there isn't a "integer interface", only float
811
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
812
services->setPixelShaderConstant("normalTexture" , (irr::f32*)&layer, 1);
813
+#else
814
+ services->setPixelShaderConstant("normalTexture" , (irr::s32*)&layer, 1);
815
+#endif
816
}
817
};
818
0 commit comments