summaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-18 13:56:35 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-18 13:56:35 +0300
commit554f7f120c4bc99a2c9c944b951662b95a03a9d4 (patch)
treee1126a1cfa5559c11d957cab1cbcef42de6216b8 /src/content_mapnode.cpp
parent05ab58cd145785867e3836ff025f11ce6fdd9410 (diff)
downloadminetest-554f7f120c4bc99a2c9c944b951662b95a03a9d4.tar.gz
minetest-554f7f120c4bc99a2c9c944b951662b95a03a9d4.tar.bz2
minetest-554f7f120c4bc99a2c9c944b951662b95a03a9d4.zip
Improve rendering and fix tiling in mesh generation
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index 139c46fb2..ec0a7df05 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -220,6 +220,7 @@ void content_mapnode_init()
i = CONTENT_JUNGLEGRASS;
f = &content_features(i);
f->setInventoryTexture("junglegrass.png");
+ f->used_texturenames["junglegrass.png"] = true;
f->light_propagates = true;
f->param_type = CPT_LIGHT;
//f->is_ground_content = true;
@@ -265,6 +266,7 @@ void content_mapnode_init()
i = CONTENT_PAPYRUS;
f = &content_features(i);
f->setInventoryTexture("papyrus.png");
+ f->used_texturenames["papyrus.png"] = true;
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->is_ground_content = true;
@@ -307,11 +309,13 @@ void content_mapnode_init()
f->solidness = 0; // drawn separately, makes no faces
f->air_equivalent = true; // grass grows underneath
f->setInventoryTexture("fence.png");
+ f->used_texturenames["fence.png"] = true;
setWoodLikeDiggingProperties(f->digging_properties, 0.75);
i = CONTENT_RAIL;
f = &content_features(i);
f->setInventoryTexture("rail.png");
+ f->used_texturenames["rail.png"] = true;
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->is_ground_content = true;
@@ -324,6 +328,7 @@ void content_mapnode_init()
i = CONTENT_LADDER;
f = &content_features(i);
f->setInventoryTexture("ladder.png");
+ f->used_texturenames["ladder.png"] = true;
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->is_ground_content = true;
@@ -466,6 +471,7 @@ void content_mapnode_init()
i = CONTENT_LAVA;
f = &content_features(i);
f->setInventoryTextureCube("lava.png", "lava.png", "lava.png");
+ f->used_texturenames["lava.png"] = true;
f->param_type = CPT_LIGHT;
f->light_propagates = false;
f->light_source = LIGHT_MAX-1;
@@ -502,6 +508,7 @@ void content_mapnode_init()
i = CONTENT_LAVASOURCE;
f = &content_features(i);
f->setInventoryTextureCube("lava.png", "lava.png", "lava.png");
+ f->used_texturenames["ladder.png"] = true;
if(new_style_water)
{
f->solidness = 0; // drawn separately, makes no faces
@@ -555,6 +562,10 @@ void content_mapnode_init()
i = CONTENT_TORCH;
f = &content_features(i);
f->setInventoryTexture("torch_on_floor.png");
+ f->used_texturenames["torch_on_floor.png"] = true;
+ f->used_texturenames["torch_on_ceiling.png"] = true;
+ f->used_texturenames["torch_on_floor.png"] = true;
+ f->used_texturenames["torch.png"] = true;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
f->sunlight_propagates = true;
@@ -569,6 +580,7 @@ void content_mapnode_init()
i = CONTENT_SIGN_WALL;
f = &content_features(i);
f->setInventoryTexture("sign_wall.png");
+ f->used_texturenames["sign_wall.png"] = true;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
f->sunlight_propagates = true;
@@ -671,6 +683,7 @@ void content_mapnode_init()
f->param_type = CPT_LIGHT;
f->setAllTextures("sapling.png");
f->setInventoryTexture("sapling.png");
+ f->used_texturenames["sapling.png"] = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->light_propagates = true;
f->air_equivalent = false;
@@ -681,6 +694,7 @@ void content_mapnode_init()
i = CONTENT_APPLE;
f = &content_features(i);
f->setInventoryTexture("apple.png");
+ f->used_texturenames["apple.png"] = true;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
f->sunlight_propagates = true;