Include alpha channel reference in MaterialTypeParam
authorstujones11 <stujones111@gmail.com>
Fri, 26 Jan 2018 19:08:54 +0000 (19:08 +0000)
committersfan5 <sfan5@live.de>
Thu, 8 Feb 2018 14:38:49 +0000 (15:38 +0100)
src/client/tile.h

index 817b1aa58595e5ad8b719e97d4b8644a832858ce..6436a93d3501d60700fc968624f633ee973a1ac2 100644 (file)
@@ -232,6 +232,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: