TileSpec():
texture(0),
alpha(255),
- material_type(MATERIAL_ALPHA_NONE),
+ //material_type(MATERIAL_ALPHA_NONE),
// Use this so that leaves don't need a separate material
- //material_type(MATERIAL_ALPHA_SIMPLE),
+ material_type(MATERIAL_ALPHA_SIMPLE),
material_flags(
//0 // <- DEBUG, Use the one below
MATERIAL_FLAG_BACKFACE_CULLING
}
// Sets everything else except the texture in the material
- void applyMaterialOptions(video::SMaterial &material)
+ void applyMaterialOptions(video::SMaterial &material) const
{
if(alpha != 255 && material_type != MATERIAL_ALPHA_VERTEX)
dstream<<"WARNING: TileSpec: alpha != 255 "