Non-vertex-alpha texture material for lava
authorPerttu Ahola <celeron55@gmail.com>
Mon, 15 Aug 2011 09:08:41 +0000 (12:08 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 15 Aug 2011 09:08:41 +0000 (12:08 +0300)
src/content_mapnode.cpp

index a3c8d4b0a48cee82913f2cede12327d30039dfad..7174a8a4b7cdea7fe749fb0531c35c1b781b6010 100644 (file)
@@ -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")));