mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Reuse object_shader for "wielditem" and "item" entity drawtypes (#9537)
This commit is contained in:
parent
c87d52a5fa
commit
cdbe3c5e57
6 changed files with 24 additions and 165 deletions
|
@ -542,7 +542,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r
|
|||
m_wieldnode->setPosition(wield_position);
|
||||
m_wieldnode->setRotation(wield_rotation);
|
||||
|
||||
m_wieldnode->setColor(player->light_color);
|
||||
m_wieldnode->setNodeLightColor(player->light_color);
|
||||
|
||||
// Set render distance
|
||||
updateViewingRange();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue