From 8a85e5e58decf77df27d114574026ff8032b8a45 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Thu, 2 Jul 2015 21:36:45 +0200 Subject: Shaders fixes and cleanup relief mapping code. --- src/shader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/shader.cpp b/src/shader.cpp index a6d18e1be..7e4f40810 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -731,8 +731,11 @@ ShaderInfo generate_shader(std::string name, u8 material_type, u8 drawtype, shaders_header += "\n"; } + shaders_header += "#define USE_NORMALMAPS "; if (g_settings->getBool("enable_bumpmapping") || g_settings->getBool("enable_parallax_occlusion")) - shaders_header += "#define USE_NORMALMAPS\n"; + shaders_header += "1\n"; + else + shaders_header += "0\n"; if (g_settings->getBool("enable_waving_water")){ shaders_header += "#define ENABLE_WAVING_WATER 1\n"; -- cgit v1.2.3