mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Improve lighting of entities.
Pass correct natural & artificial light to the shaders Use natural/artificial light ratio for correct rendering of shadows
This commit is contained in:
parent
f2cccf8da7
commit
54dccc480e
5 changed files with 50 additions and 25 deletions
|
@ -515,8 +515,9 @@ void WieldMeshSceneNode::setNodeLightColor(video::SColor color)
|
|||
material.EmissiveColor = color;
|
||||
}
|
||||
}
|
||||
|
||||
setColor(color);
|
||||
else {
|
||||
setColor(color);
|
||||
}
|
||||
}
|
||||
|
||||
void WieldMeshSceneNode::render()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue