diff options
author | Dmitry Kostenko <codeforsmile@gmail.com> | 2021-11-04 03:03:10 +0100 |
---|---|---|
committer | x2048 <codeforsmile@gmail.com> | 2022-03-07 23:45:26 +0100 |
commit | 54dccc480eb03adcf219a7add58f547284f40f76 (patch) | |
tree | 53ca69960e1d4bd2facc35368094106b49b56053 /src/client/wieldmesh.cpp | |
parent | f2cccf8da72c39299c8e7ba6ad8f782a7d61b883 (diff) | |
download | minetest-54dccc480eb03adcf219a7add58f547284f40f76.tar.gz minetest-54dccc480eb03adcf219a7add58f547284f40f76.tar.bz2 minetest-54dccc480eb03adcf219a7add58f547284f40f76.zip |
Improve lighting of entities.
Pass correct natural & artificial light to the shaders
Use natural/artificial light ratio for correct rendering of shadows
Diffstat (limited to 'src/client/wieldmesh.cpp')
-rw-r--r-- | src/client/wieldmesh.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/wieldmesh.cpp b/src/client/wieldmesh.cpp index 8b3347df6..ab6fc9281 100644 --- a/src/client/wieldmesh.cpp +++ b/src/client/wieldmesh.cpp @@ -515,8 +515,9 @@ void WieldMeshSceneNode::setNodeLightColor(video::SColor color) material.EmissiveColor = color; } } - - setColor(color); + else { + setColor(color); + } } void WieldMeshSceneNode::render() |