aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-10-12 13:29:31 -0700
committerlhofhansl <larsh@apache.org>2020-10-17 13:09:16 -0700
commited22260822086f84016aa8384c3174bfc6d1739d (patch)
tree0b6d04bf315b4d6c832993efeb1b58244b1bcb50 /src/nodedef.cpp
parentf43d1cfa81aa496174af6cdfa648dab9dd17288c (diff)
downloadminetest-ed22260822086f84016aa8384c3174bfc6d1739d.tar.gz
minetest-ed22260822086f84016aa8384c3174bfc6d1739d.tar.bz2
minetest-ed22260822086f84016aa8384c3174bfc6d1739d.zip
Remove all bump mapping and parallax occlusion related code.
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 3a5934cf3..5c2e5cd09 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -266,9 +266,6 @@ void TextureSettings::readSettings()
{
connected_glass = g_settings->getBool("connected_glass");
opaque_water = g_settings->getBool("opaque_water");
- bool enable_shaders = g_settings->getBool("enable_shaders");
- bool enable_bumpmapping = g_settings->getBool("enable_bumpmapping");
- bool enable_parallax_occlusion = g_settings->getBool("enable_parallax_occlusion");
bool smooth_lighting = g_settings->getBool("smooth_lighting");
enable_mesh_cache = g_settings->getBool("enable_mesh_cache");
enable_minimap = g_settings->getBool("enable_minimap");
@@ -281,8 +278,6 @@ void TextureSettings::readSettings()
if (smooth_lighting)
enable_mesh_cache = false;
- use_normal_texture = enable_shaders &&
- (enable_bumpmapping || enable_parallax_occlusion);
if (leaves_style_str == "fancy") {
leaves_style = LEAVES_FANCY;
} else if (leaves_style_str == "simple") {
@@ -635,10 +630,6 @@ static void fillTileAttribs(ITextureSource *tsrc, TileLayer *layer,
if (!tile.world_aligned)
layer->scale = 1;
- // Normal texture and shader flags texture
- if (tsettings.use_normal_texture) {
- layer->normal_texture = tsrc->getNormalTexture(tiledef.name);
- }
layer->flags_texture = tsrc->getShaderFlagsTexture(layer->normal_texture ? true : false);
// Material flags