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

Smooth day-night transitions

This commit is contained in:
Perttu Ahola 2012-12-02 18:02:04 +02:00
parent 041585a78e
commit 804a7875a2
7 changed files with 87 additions and 23 deletions

View file

@ -544,7 +544,7 @@ void Camera::wield(const ItemStack &item)
void Camera::drawWieldedTool()
{
// Set vertex colors of wield mesh according to light level
u8 li = decode_light(m_wieldlight);
u8 li = m_wieldlight;
video::SColor color(255,li,li,li);
setMeshColor(m_wieldnode->getMesh(), color);