*/
void setMeshColor(scene::IMesh *mesh, const video::SColor &color);
+/*
+ Shade mesh faces according to their normals
+*/
+
+void shadeMeshFaces(scene::IMesh *mesh);
+
/*
Set the color of all vertices in the mesh.
For each vertex, determine the largest absolute entry in
scene::IMesh* cloneMesh(scene::IMesh *src_mesh);
/*
- Convert nodebox drawtype node to mesh.
+ Convert nodeboxes to mesh.
+ boxes - set of nodeboxes to be converted into cuboids
+ uv_coords[24] - table of texture uv coords for each cuboid face
*/
-scene::IMesh* convertNodeboxNodeToMesh(ContentFeatures *f);
+scene::IMesh* convertNodeboxesToMesh(const std::vector<aabb3f> &boxes,
+ const f32 *uv_coords = NULL);
/*
Update bounding box for a mesh.