summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-07-04 02:36:32 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-04 02:36:32 +0200
commit3f6f327cb97662eb95e20f62650abcfac6bce3ab (patch)
tree1bbe3777195dd64344ecffcf6d8e569939a59041 /src/game.cpp
parentb850f0f03829cbb024d22672de0af29cab001d86 (diff)
downloadminetest-3f6f327cb97662eb95e20f62650abcfac6bce3ab.tar.gz
minetest-3f6f327cb97662eb95e20f62650abcfac6bce3ab.tar.bz2
minetest-3f6f327cb97662eb95e20f62650abcfac6bce3ab.zip
Add texture bumpmapping feature.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 44ec9ee37..0ae323208 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -804,6 +804,10 @@ public:
u32 daynight_ratio = m_client->getEnv().getDayNightRatio();
float daynight_ratio_f = (float)daynight_ratio / 1000.0;
services->setPixelShaderConstant("dayNightRatio", &daynight_ratio_f, 1);
+
+ // Normal map texture layer
+ int layer = 1;
+ services->setPixelShaderConstant("normalTexture" , (irr::f32*)&layer, 1);
}
};