From 68f5b877c72cf91106ac343673f8a31b9712a470 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sun, 21 Feb 2016 06:50:41 +0100 Subject: 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. --- src/mesh.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesh.h') 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. -- cgit v1.2.3