aboutsummaryrefslogtreecommitdiff
path: root/src/models.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-04-03 18:31:42 +0200
committerraysan5 <raysan5@gmail.com>2016-04-03 18:31:42 +0200
commita66c8531d69569b0c5173c71a8ed28565c1b5214 (patch)
tree7a582d47716df9efa1db41832eefd8b78e93acf2 /src/models.c
parent37cc45a0a887c55815fffed0c887508ff8956d1b (diff)
downloadraylib-a66c8531d69569b0c5173c71a8ed28565c1b5214.tar.gz
raylib-a66c8531d69569b0c5173c71a8ed28565c1b5214.zip
Some code simplifications
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c
index a515dd86..0bb2b8d6 100644
--- a/src/models.c
+++ b/src/models.c
@@ -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)