mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Soft node overlay (#5186)
This commit adds node overlays, which are tiles that are drawn on top of other tiles.
This commit is contained in:
parent
2ad74a9e8b
commit
1ffb180868
18 changed files with 763 additions and 467 deletions
|
@ -687,8 +687,9 @@ void drawItemStack(video::IVideoDriver *driver,
|
|||
assert(buf->getHardwareMappingHint_Vertex() == scene::EHM_NEVER);
|
||||
video::SColor c = basecolor;
|
||||
if (imesh->buffer_colors.size() > j) {
|
||||
std::pair<bool, video::SColor> p = imesh->buffer_colors[j];
|
||||
c = p.first ? p.second : basecolor;
|
||||
ItemPartColor *p = &imesh->buffer_colors[j];
|
||||
if (p->override_base)
|
||||
c = p->color;
|
||||
}
|
||||
colorizeMeshBuffer(buf, &c);
|
||||
video::SMaterial &material = buf->getMaterial();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue