fix torch texture mapping to 2 pixels wide

This commit is contained in:
darkrose 2013-11-21 22:08:49 +10:00
parent 5c5d768c8f
commit e56bcdf68b
2 changed files with 6 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 204 B

View File

@ -671,12 +671,12 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
case CDT_TORCHLIKE: case CDT_TORCHLIKE:
{ {
static const f32 txc[24] = { static const f32 txc[24] = {
0.6,0.1,0.9,0.4, 0.625,0.125,0.75,0.25,
0.6,0.6,0.6,0.9, 0.625,0.625,0.625,0.75,
0,0,0.3,1, 0,0,0.125,1,
0,0,0.3,1, 0,0,0.125,1,
0,0,0.3,1, 0,0,0.125,1,
0,0,0.3,1 0,0,0.125,1
}; };
video::SColor c(255,255,255,255); video::SColor c(255,255,255,255);
v3f pos = intToFloat(p+blockpos_nodes, BS); v3f pos = intToFloat(p+blockpos_nodes, BS);