Some code simplifications
This commit is contained in:
parent
37cc45a0a8
commit
a66c8531d6
2 changed files with 30 additions and 61 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue