diff options
| author | raysan5 <raysan5@gmail.com> | 2016-04-03 18:31:42 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-04-03 18:31:42 +0200 |
| commit | a66c8531d69569b0c5173c71a8ed28565c1b5214 (patch) | |
| tree | 7a582d47716df9efa1db41832eefd8b78e93acf2 /src/models.c | |
| parent | 37cc45a0a887c55815fffed0c887508ff8956d1b (diff) | |
| download | raylib-a66c8531d69569b0c5173c71a8ed28565c1b5214.tar.gz raylib-a66c8531d69569b0c5173c71a8ed28565c1b5214.zip | |
Some code simplifications
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 1 |
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) |
