aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-15 12:08:41 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-15 12:08:41 +0300
commit0c7e7f49980851c4290817dae7a9c1cdc4a93b65 (patch)
treed19e68ac78761dfda56d309b2a46251e6bc82824 /src
parent4b85608e306c4b0bf74f5f132cdd61257eb7e9c1 (diff)
downloadminetest-0c7e7f49980851c4290817dae7a9c1cdc4a93b65.tar.gz
minetest-0c7e7f49980851c4290817dae7a9c1cdc4a93b65.tar.bz2
minetest-0c7e7f49980851c4290817dae7a9c1cdc4a93b65.zip
Non-vertex-alpha texture material for lava
Diffstat (limited to 'src')
-rw-r--r--src/content_mapnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index a3c8d4b0a..7174a8a4b 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -460,7 +460,7 @@ void content_mapnode_init()
f->special_material->setFlag(video::EMF_BACK_FACE_CULLING, false);
f->special_material->setFlag(video::EMF_BILINEAR_FILTER, false);
f->special_material->setFlag(video::EMF_FOG_ENABLE, true);
- f->special_material->MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA;
+ f->special_material->MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
AtlasPointer *pa_lava1 = new AtlasPointer(
g_texturesource->getTexture(
g_texturesource->getTextureId("lava.png")));
@@ -508,7 +508,7 @@ void content_mapnode_init()
f->special_material->setFlag(video::EMF_BACK_FACE_CULLING, false);
f->special_material->setFlag(video::EMF_BILINEAR_FILTER, false);
f->special_material->setFlag(video::EMF_FOG_ENABLE, true);
- f->special_material->MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA;
+ f->special_material->MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
AtlasPointer *pa_lava1 = new AtlasPointer(
g_texturesource->getTexture(
g_texturesource->getTextureId("lava.png")));