#include "light.h"
#include <sstream>
+#ifndef SERVER
void MeshMakeData::fill(u32 daynight_ratio, MapBlock *block)
{
m_daynight_ratio = daynight_ratio;
}
}
}
+#endif
/*
Parameters must consist of air and !air.
//std::cout<<"added "<<fastfaces.getSize()<<" faces."<<std::endl;
}
+#endif // !SERVER
/*
MapBlock
}
}
+#ifndef SERVER
+
#if 1
void MapBlock::updateMesh(u32 daynight_ratio)
{
class MapBlock;
+#ifndef SERVER
+
struct MeshMakeData
{
u32 m_daynight_ratio;
void fill(u32 daynight_ratio, MapBlock *block);
};
+scene::SMesh* makeMapBlockMesh(MeshMakeData *data);
+
+#endif
+
u8 getFaceLight(u32 daynight_ratio, MapNode n, MapNode n2,
v3s16 face_dir);
-scene::SMesh* makeMapBlockMesh(MeshMakeData *data);
-
/*
MapBlock itself
*/