Removed function SetModelTexture()
It's more educational to go through new material system, so, I decide to remove this function to avoid students confusion...
This commit is contained in:
parent
b358402cb3
commit
5f7ac64c44
9 changed files with 11 additions and 18 deletions
|
@ -808,13 +808,6 @@ void UnloadMaterial(Material material)
|
|||
rlDeleteTextures(material.texSpecular.id);
|
||||
}
|
||||
|
||||
// Link a texture to a model
|
||||
void SetModelTexture(Model *model, Texture2D texture)
|
||||
{
|
||||
if (texture.id <= 0) model->material.texDiffuse = GetDefaultTexture(); // Use default white texture
|
||||
else model->material.texDiffuse = texture;
|
||||
}
|
||||
|
||||
// Generate a mesh from heightmap
|
||||
static Mesh GenMeshHeightmap(Image heightmap, Vector3 size)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue