diff options
Diffstat (limited to 'src/mesh.h')
-rw-r--r-- | src/mesh.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesh.h b/src/mesh.h index 761842b0d..ec109e9e9 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -49,6 +49,12 @@ void translateMesh(scene::IMesh *mesh, v3f vec); 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 the normal vector, and choose one of colorX, colorY or |