Include alpha channel reference in MaterialTypeParam
authorstujones11 <stujones111@gmail.com>
Fri, 26 Jan 2018 19:08:54 +0000 (19:08 +0000)
committerLoic Blot <loic.blot@unix-experience.fr>
Sat, 22 Dec 2018 16:15:39 +0000 (17:15 +0100)
src/client/tile.h

index 66ca8be1d72390757b50d5034ccff11830aa1d45..46a5b47913e6ac9114153673a6b12c2ea61f3656 100644 (file)
@@ -251,6 +251,7 @@ struct TileLayer
                case TILE_MATERIAL_BASIC:
                case TILE_MATERIAL_WAVING_LEAVES:
                case TILE_MATERIAL_WAVING_PLANTS:
+                       material.MaterialTypeParam = 0.5;
                        material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
                        break;
                case TILE_MATERIAL_ALPHA: