diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2016-02-21 06:50:41 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-11-12 06:41:04 +0000 |
commit | 68f5b877c72cf91106ac343673f8a31b9712a470 (patch) | |
tree | d9706d8b21a613c40e7ecf6eb254f41d5ca980ba /src/mesh.h | |
parent | 8a1a9fdc24d29419422f0fb41095fd0388c4be9e (diff) | |
download | minetest-68f5b877c72cf91106ac343673f8a31b9712a470.tar.gz minetest-68f5b877c72cf91106ac343673f8a31b9712a470.tar.bz2 minetest-68f5b877c72cf91106ac343673f8a31b9712a470.zip |
Halo: Highlight selected face
This is a slightly modified and cleaned up version of #3774 by RealBadAngel.
By sofar: Remove color change (just make it lighter) and some minor cleanups.
Diffstat (limited to 'src/mesh.h')
-rw-r--r-- | src/mesh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesh.h b/src/mesh.h index 8e1893773..10df97015 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -64,6 +64,10 @@ void setMeshColorByNormalXYZ(scene::IMesh *mesh, const video::SColor &colorX, const video::SColor &colorY, const video::SColor &colorZ); + +void setMeshColorByNormal(scene::IMesh *mesh, const v3f &normal, + const video::SColor &color); + /* Rotate the mesh by 6d facedir value. Method only for meshnodes, not suitable for entities. |