aboutsummaryrefslogtreecommitdiff
path: root/examples/models_heightmap.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-06-24 19:49:36 +0200
committerraysan5 <raysan5@gmail.com>2016-06-24 19:49:36 +0200
commit5f7ac64c44543383b10ec6a56e5ec1db5706276e (patch)
tree5605c0dcad2432f84494deaa527012c5e26eedb4 /examples/models_heightmap.c
parentb358402cb39d2b06a69be28e64b086a0f44b42f1 (diff)
downloadraylib-5f7ac64c44543383b10ec6a56e5ec1db5706276e.tar.gz
raylib-5f7ac64c44543383b10ec6a56e5ec1db5706276e.zip
Removed function SetModelTexture()
It's more educational to go through new material system, so, I decide to remove this function to avoid students confusion...
Diffstat (limited to 'examples/models_heightmap.c')
-rw-r--r--examples/models_heightmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models_heightmap.c b/examples/models_heightmap.c
index c8e5ff35..90e5f5bb 100644
--- a/examples/models_heightmap.c
+++ b/examples/models_heightmap.c
@@ -26,7 +26,7 @@ int main()
Image image = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM)
Texture2D texture = LoadTextureFromImage(image); // Convert image to texture (VRAM)
Model map = LoadHeightmap(image, (Vector3){ 16, 8, 16 }); // Load heightmap model with defined size
- SetModelTexture(&map, texture); // Bind texture to model
+ map.material.texDiffuse = texture; // Set map diffuse texture
Vector3 mapPosition = { -8.0f, 0.0f, -8.0f }; // Set model position (depends on model scaling!)
UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM