diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2015-07-21 23:56:41 +0200 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2015-07-21 23:56:41 +0200 |
commit | 60350699c792b816b20704d59cfbda0894cdba39 (patch) | |
tree | 59e9a369d9ea87804035ee27ea902a81b4f90060 /src/mesh.h | |
parent | 5b0c719171eb9ccb8f2829eb1cc8b3fe9f24cd05 (diff) | |
download | minetest-60350699c792b816b20704d59cfbda0894cdba39.tar.gz minetest-60350699c792b816b20704d59cfbda0894cdba39.tar.bz2 minetest-60350699c792b816b20704d59cfbda0894cdba39.zip |
Add wielded (and CAOs) shader
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 |