1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

commit before content-tile separation

This commit is contained in:
Perttu Ahola 2010-12-13 21:32:35 +02:00
parent 22037459e3
commit 3ac2abb0b5
14 changed files with 368 additions and 55 deletions

View file

@ -46,7 +46,7 @@ enum{
struct FastFace
{
u8 material;
u16 tile;
video::S3DVertex vertices[4]; // Precalculated vertices
};
@ -283,7 +283,7 @@ public:
setNode(x0+x, y0+y, z0+z, node);
}
static FastFace * makeFastFace(u8 material, u8 light, v3f p,
static FastFace * makeFastFace(u16 tile, u8 light, v3f p,
v3f dir, v3f scale, v3f posRelative_f);
u8 getFaceLight(v3s16 p, v3s16 face_dir);