Some code simplifications

This commit is contained in:
raysan5 2016-04-03 18:31:42 +02:00
parent 37cc45a0a8
commit a66c8531d6
2 changed files with 30 additions and 61 deletions

View file

@ -627,6 +627,7 @@ void SetModelTexture(Model *model, Texture2D texture)
else model->material.texDiffuse = texture;
}
// Generate a mesh from heightmap
static Mesh GenMeshHeightmap(Image heightmap, Vector3 size)
{
#define GRAY_VALUE(c) ((c.r+c.g+c.b)/3)