diff options
author | x2048 <codeforsmile@gmail.com> | 2022-05-20 22:33:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 22:33:52 +0200 |
commit | 604fb2b738c1f369c608b7f3b778034bf3dc2725 (patch) | |
tree | bbdcf4ef77af6f7058b115e3e4c24ab34e164988 /src/client/camera.h | |
parent | 273bfee9a193d0dd2e9f9b400add980c0b5202a7 (diff) | |
download | hax-minetest-server-604fb2b738c1f369c608b7f3b778034bf3dc2725.tar.gz hax-minetest-server-604fb2b738c1f369c608b7f3b778034bf3dc2725.zip |
Fix lighting of the wield mesh (#12341)
* Assign node light to player before final color blend.
Fixes day/night lightbank ratio for wield meshes
* Update wield mesh light when changing mesh
Diffstat (limited to 'src/client/camera.h')
-rw-r--r-- | src/client/camera.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/camera.h b/src/client/camera.h index 403d6024c..cbf248d97 100644 --- a/src/client/camera.h +++ b/src/client/camera.h @@ -264,4 +264,7 @@ private: std::list<Nametag *> m_nametags; bool m_show_nametag_backgrounds; + + // Last known light color of the player + video::SColor m_player_light_color; }; |