X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh.h;h=ec109e9e9422df9ad8d62b5b0fc9287493321c02;hb=c26eb87aec7438d167fa2f460a3f412db09c0ac5;hp=761842b0d744c618634802a4731c3f0aff499f8b;hpb=016448331061f87a63b8f9ef33671d81e8922ad1;p=oweals%2Fminetest.git diff --git a/src/mesh.h b/src/mesh.h index 761842b0d..ec109e9e9 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -48,6 +48,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