aboutsummaryrefslogtreecommitdiff
path: root/src/mesh.h
diff options
context:
space:
mode:
authorLars Hofhansl <larsh@apache.org>2017-12-04 22:25:09 -0800
committerLars Hofhansl <larsh@apache.org>2017-12-04 22:29:11 -0800
commitfd9f195fcc2e4e592dbad3290876486eb08318b2 (patch)
tree5e8df8c8057e1a268f700541f8efdf2e4174a2ce /src/mesh.h
parentf470cb7270560a26afff0a0eadfc69070236c109 (diff)
downloadhax-minetest-server-fd9f195fcc2e4e592dbad3290876486eb08318b2.tar.gz
hax-minetest-server-fd9f195fcc2e4e592dbad3290876486eb08318b2.zip
Use Irrlicht's mesh cache for animated meshes.
Fixes #6676. Allow animated meshes to be cached in Irrlicht's builtin mesh cache. Use Material.EmmissiveColor instead of manipulating the mesh' vertex colors.
Diffstat (limited to '')
-rw-r--r--src/mesh.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesh.h b/src/mesh.h
index 35270a999..0c4094de2 100644
--- a/src/mesh.h
+++ b/src/mesh.h
@@ -58,6 +58,11 @@ void setMeshBufferColor(scene::IMeshBuffer *buf, const video::SColor &color);
*/
void setMeshColor(scene::IMesh *mesh, const video::SColor &color);
+/*
+ Set a constant color for an animated mesh
+*/
+void setAnimatedMeshColor(scene::IAnimatedMeshSceneNode *node, const video::SColor &color);
+
/*!
* Overwrites the color of a mesh buffer.
* The color is darkened based on the normal vector of the vertices.