mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Better node texture generation
This commit is contained in:
parent
c1202a2ecc
commit
cf6e22e9a6
7 changed files with 197 additions and 208 deletions
|
@ -391,7 +391,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
else
|
||||
l = decode_light(n.getLightBlend(data->m_daynight_ratio, nodedef));
|
||||
video::SColor c = MapBlock_LightColor(
|
||||
nodedef->get(n).vertex_alpha, l);
|
||||
nodedef->get(n).alpha, l);
|
||||
|
||||
// Neighbor liquid levels (key = relative position)
|
||||
// Includes current node
|
||||
|
@ -678,7 +678,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
|
||||
u8 l = decode_light(n.getLightBlend(data->m_daynight_ratio, nodedef));
|
||||
video::SColor c = MapBlock_LightColor(
|
||||
nodedef->get(n).vertex_alpha, l);
|
||||
nodedef->get(n).alpha, l);
|
||||
|
||||
video::S3DVertex vertices[4] =
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue