mirror of
https://github.com/luanti-org/luanti.git
synced 2026-01-14 13:25:21 +01:00
Respect node alpha node for inventory drawing (#16556)
This commit is contained in:
@@ -118,9 +118,9 @@ void drawItemStack(
|
||||
|
||||
video::SColor basecolor = item_visuals->getItemstackColor(item, client);
|
||||
|
||||
const u32 mc = mesh->getMeshBufferCount();
|
||||
if (mc > imesh->buffer_info.size())
|
||||
imesh->buffer_info.resize(mc);
|
||||
u32 mc = mesh->getMeshBufferCount();
|
||||
assert(mc <= imesh->buffer_info.size());
|
||||
mc = std::min<u32>(mc, imesh->buffer_info.size());
|
||||
for (u32 j = 0; j < mc; ++j) {
|
||||
scene::IMeshBuffer *buf = mesh->getMeshBuffer(j);
|
||||
video::SColor c = basecolor;
|
||||
@@ -144,7 +144,6 @@ void drawItemStack(
|
||||
p.animation_info->updateTexture(material, client->getAnimationTime());
|
||||
}
|
||||
|
||||
material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
||||
driver->setMaterial(material);
|
||||
driver->drawMeshBuffer(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user